wallace 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component.js +5 -8
- package/lib/index.js +2 -2
- package/lib/initCalls.js +3 -9
- package/lib/types.d.ts +588 -432
- package/lib/utils.js +1 -1
- package/package.json +3 -3
package/lib/types.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
6. Inheritance
|
|
17
17
|
7. Stubs
|
|
18
18
|
8. TypeScript
|
|
19
|
+
9. Utility functions
|
|
19
20
|
|
|
20
21
|
For more detailed documentation go to https://github.com/wallace-js/wallace
|
|
21
22
|
|
|
@@ -37,8 +38,8 @@ The function takes two arguments, both optional:
|
|
|
37
38
|
2. **xargs** - which *must* be destructured to exactly one level, as shown:
|
|
38
39
|
|
|
39
40
|
```tsx
|
|
40
|
-
const MyComponent = ({title}, {ctrl,
|
|
41
|
-
<button onClick={ctrl.doSomething(
|
|
41
|
+
const MyComponent = ({title}, {ctrl, event}) => (
|
|
42
|
+
<button onClick={ctrl.doSomething(event)}>
|
|
42
43
|
{title}
|
|
43
44
|
</button>
|
|
44
45
|
);
|
|
@@ -48,7 +49,7 @@ The **xargs** contains:
|
|
|
48
49
|
|
|
49
50
|
- `ctrl` a reference to a controller object.
|
|
50
51
|
- `self` a reference to the component instance (as `this` is not allowed).
|
|
51
|
-
- `
|
|
52
|
+
- `event` for use in event callbacks, signifies the event.
|
|
52
53
|
|
|
53
54
|
The function will be replaced by a very different one during compilation, therefore:
|
|
54
55
|
|
|
@@ -154,21 +155,21 @@ Other than that, its standard JSX, except for three special cases:
|
|
|
154
155
|
2. Nesting.
|
|
155
156
|
3. Stubs, for inheritance.
|
|
156
157
|
|
|
157
|
-
## 3 Nesting
|
|
158
|
+
## 3. Nesting
|
|
158
159
|
|
|
159
160
|
To nest or repeat components use its name followed by `.nest` or `.repeat`:
|
|
160
161
|
|
|
161
162
|
```tsx
|
|
162
|
-
const Task
|
|
163
|
+
const Task = (task) => (<div></div>);
|
|
163
164
|
|
|
164
|
-
const TopTasks
|
|
165
|
+
const TopTasks = (tasks) => (
|
|
165
166
|
<div>
|
|
166
167
|
<Task.nest props={tasks[0]} />
|
|
167
168
|
<Task.nest props={tasks[1]} />
|
|
168
169
|
</div>
|
|
169
170
|
);
|
|
170
171
|
|
|
171
|
-
const TaskList
|
|
172
|
+
const TaskList = (tasks) => (
|
|
172
173
|
<div>
|
|
173
174
|
<Task.repeat props={tasks} />
|
|
174
175
|
</div>
|
|
@@ -177,10 +178,9 @@ const TaskList: Uses<iTask[]> = (tasks) => (
|
|
|
177
178
|
|
|
178
179
|
Notes:
|
|
179
180
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
- A repeat must be the only child element under its parent.
|
|
181
|
+
- You cannot use nest or repeat on the root element.
|
|
182
|
+
- Repeat must be the only child element under its parent.
|
|
183
|
+
- The `props` expects an array on repeat (See **TypeScript** below)
|
|
184
184
|
|
|
185
185
|
## 4. Directives
|
|
186
186
|
|
|
@@ -190,9 +190,11 @@ over it in your IDE.
|
|
|
190
190
|
|
|
191
191
|
You can also display this list by hovering over any JSX element, like `div`.
|
|
192
192
|
|
|
193
|
+
- `apply` runs a callback to modify an element.
|
|
193
194
|
- `bind` updates a value when an input is changed.
|
|
194
195
|
- `class:xyz` defines a set of classes to be toggled.
|
|
195
|
-
- `hide` sets
|
|
196
|
+
- `hide` sets an element or component's hidden property.
|
|
197
|
+
- `html` Set the element's `innnerHTML` property.
|
|
196
198
|
- `if` excludes an element from the DOM.
|
|
197
199
|
- `on[EventName]` creates an event handler (note the code is copied)
|
|
198
200
|
- `props` specifes props for a nested or repeated component, in which case it must be
|
|
@@ -214,25 +216,28 @@ component, making it a convenient place to handle:
|
|
|
214
216
|
- Sorting, filtering and formatting props.
|
|
215
217
|
- Coordinating updates.
|
|
216
218
|
|
|
217
|
-
This lets you use props
|
|
219
|
+
This lets you use props purely for data.
|
|
218
220
|
|
|
219
221
|
Controllers often reference:
|
|
220
222
|
|
|
221
|
-
-
|
|
222
|
-
-
|
|
223
|
+
- One or more components to be updated after data changes.
|
|
224
|
+
- Other controllers they need access to like services or modal containers.
|
|
225
|
+
|
|
226
|
+
Components sometimes only use a controller, and no props.
|
|
223
227
|
|
|
224
228
|
```tsx
|
|
225
229
|
class TaskController {
|
|
226
|
-
constructor (rootComponent,
|
|
230
|
+
constructor (rootComponent, dbController) {
|
|
227
231
|
this.root = rootComponent;
|
|
228
|
-
this.
|
|
232
|
+
this.db = dbController;
|
|
229
233
|
}
|
|
230
234
|
getTasks () {
|
|
231
|
-
return this.
|
|
235
|
+
return this.db.fetch(...);
|
|
232
236
|
}
|
|
233
237
|
newTask () {
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
this.db.put(...).then(() => {
|
|
239
|
+
this.root.update();
|
|
240
|
+
});
|
|
236
241
|
}
|
|
237
242
|
}
|
|
238
243
|
|
|
@@ -245,17 +250,17 @@ const TaskList = (_, {ctrl}) => (
|
|
|
245
250
|
);
|
|
246
251
|
|
|
247
252
|
TaskList.methods({
|
|
248
|
-
render(
|
|
249
|
-
this.props = props;
|
|
253
|
+
render(_, ctrl) {
|
|
250
254
|
this.ctrl = new TaskController(this, ctrl);
|
|
255
|
+
this.update();
|
|
251
256
|
}
|
|
252
257
|
});
|
|
253
258
|
```
|
|
254
259
|
|
|
255
260
|
## 6. Inheritance
|
|
256
261
|
|
|
257
|
-
You can
|
|
258
|
-
|
|
262
|
+
You can creat new component defintion by extending another one, either preserving the
|
|
263
|
+
base's structure, or overriding it:
|
|
259
264
|
|
|
260
265
|
```tsx
|
|
261
266
|
import { extendComponent } from 'wallace';
|
|
@@ -290,21 +295,20 @@ MyComponent.stubs.text: MyTextComponent;
|
|
|
290
295
|
|
|
291
296
|
Stubs are inherited and can be overridden, which means you can either:
|
|
292
297
|
|
|
293
|
-
-
|
|
294
|
-
|
|
295
|
-
|
|
298
|
+
- Set the DOM structure in the base, and implement/override stubs on the child.
|
|
299
|
+
- Set the DOM structure in the child, and use/override stubs from the base.
|
|
300
|
+
|
|
301
|
+
So long as the rendered component has all its stubs defined somewhere, it will work.
|
|
296
302
|
|
|
297
303
|
Notes:
|
|
298
304
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
305
|
+
- Stubs receive the same props and controller as their containing component.
|
|
306
|
+
- Stubs are separate components, so cannot access methods on the containing component
|
|
307
|
+
through `self` (use the controller for that kind of thing).
|
|
302
308
|
|
|
303
309
|
## 8. TypeScript
|
|
304
310
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
The `Uses` type must be placed where shown:
|
|
311
|
+
The main type is `Uses` which must be placed right after the comonent name:
|
|
308
312
|
|
|
309
313
|
```tsx
|
|
310
314
|
import { Uses } from 'wallace';
|
|
@@ -316,28 +320,32 @@ interface iTask {
|
|
|
316
320
|
const Task: Uses<iTask> = ({text}) => <div>{text}</div>;
|
|
317
321
|
```
|
|
318
322
|
|
|
319
|
-
This will set up typing for the props inside the function and many other things.
|
|
320
|
-
|
|
321
323
|
If you require no props, set it to `null`:
|
|
322
324
|
|
|
323
325
|
```tsx
|
|
324
326
|
const Task: Uses<null> = () => <div>Hello</div>;
|
|
325
327
|
```
|
|
326
328
|
|
|
327
|
-
|
|
329
|
+
`Uses` sets up type support in several places.
|
|
330
|
+
|
|
331
|
+
### Props
|
|
328
332
|
|
|
329
|
-
|
|
330
|
-
|
|
333
|
+
TypeScript will ensure you pass correct props during mounting or nesting,
|
|
334
|
+
including repeat, which expects an arry of the type:
|
|
331
335
|
|
|
332
336
|
```
|
|
333
337
|
const TaskList: Uses<iTask[]> = (tasks) => (
|
|
334
338
|
<div>
|
|
335
|
-
|
|
339
|
+
First task:
|
|
340
|
+
<Task.nest props={tasks[0]} />
|
|
341
|
+
<div>
|
|
342
|
+
<Task.repeat props={tasks.slice(1)} />
|
|
343
|
+
</div>
|
|
336
344
|
</div>
|
|
337
345
|
);
|
|
338
346
|
```
|
|
339
347
|
|
|
340
|
-
|
|
348
|
+
### Controller
|
|
341
349
|
|
|
342
350
|
The 2nd type is used for the controller, available as `ctrl` in **xargs**:
|
|
343
351
|
|
|
@@ -353,7 +361,7 @@ const Task: Uses<null, TaskController> = (_, { ctrl }) => (
|
|
|
353
361
|
));
|
|
354
362
|
```
|
|
355
363
|
|
|
356
|
-
|
|
364
|
+
### Methods
|
|
357
365
|
|
|
358
366
|
To see custom methods on `self` you'll need use an interface:
|
|
359
367
|
|
|
@@ -379,7 +387,7 @@ Task.methods({
|
|
|
379
387
|
The type will pass into the object passed into `methods` so it recognises custom methods
|
|
380
388
|
in addition to standard methods like `render`, which are already typed for you.
|
|
381
389
|
|
|
382
|
-
|
|
390
|
+
### Stubs
|
|
383
391
|
|
|
384
392
|
The `props` and `controller` will pass through to functions you assign to
|
|
385
393
|
`Component.stubs` as stubs receive the same props as the parent.
|
|
@@ -393,7 +401,7 @@ Task.stubs.foo = (_, { self }) => (
|
|
|
393
401
|
));
|
|
394
402
|
```
|
|
395
403
|
|
|
396
|
-
###
|
|
404
|
+
### Inheritance
|
|
397
405
|
|
|
398
406
|
The `extendComponent` function transfers the types specified on the base:
|
|
399
407
|
|
|
@@ -413,12 +421,46 @@ const Child = extendComponent<newProps, Controller, Methods>(Parent);
|
|
|
413
421
|
to `any`.
|
|
414
422
|
2. Each type must extend its corresponding type on base.
|
|
415
423
|
|
|
416
|
-
|
|
424
|
+
### Other types:
|
|
417
425
|
|
|
426
|
+
Wallace defines some other types you may use:
|
|
418
427
|
|
|
428
|
+
- `Component<Props, Controller, Methods>` - the base component class (it is a
|
|
429
|
+
constructor, not a class)
|
|
430
|
+
- `ComponentInstance<Props, Controller, Methods>` - a component instance.
|
|
431
|
+
|
|
432
|
+
## Utility functions
|
|
433
|
+
|
|
434
|
+
Each of these has their own JSDoc, we just lsit them here.
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### extendComponent
|
|
438
|
+
|
|
439
|
+
Define a new componend by extending another one:
|
|
440
|
+
|
|
441
|
+
```
|
|
442
|
+
const Foo = extendComponent(Base);
|
|
443
|
+
const Bar = extendComponent(Base, () => <div></div>);
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
### mount
|
|
447
|
+
|
|
448
|
+
Mounts an instance of a component to the DOM:
|
|
449
|
+
|
|
450
|
+
```
|
|
451
|
+
mount("elementId", MyComponent, props, ctrl);
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### watch
|
|
455
|
+
|
|
456
|
+
Returns a Proxy of an object which calls `callback` when keys are set:
|
|
457
|
+
|
|
458
|
+
```
|
|
459
|
+
watch(obj, () => console.log('obj modified);
|
|
460
|
+
```
|
|
419
461
|
---
|
|
420
|
-
|
|
421
|
-
|
|
462
|
+
Report any issues to https://github.com/wallace-js/wallace (and please give it a ★)
|
|
463
|
+
|
|
422
464
|
*/
|
|
423
465
|
|
|
424
466
|
declare module "wallace" {
|
|
@@ -429,20 +471,20 @@ declare module "wallace" {
|
|
|
429
471
|
interface ComponentFunction<
|
|
430
472
|
Props = any,
|
|
431
473
|
Controller = any,
|
|
432
|
-
Methods extends object = {}
|
|
474
|
+
Methods extends object = {}
|
|
433
475
|
> {
|
|
434
476
|
(
|
|
435
477
|
props: Props,
|
|
436
478
|
other?: {
|
|
437
479
|
ctrl: Controller;
|
|
438
|
-
self:
|
|
439
|
-
|
|
480
|
+
self: ComponentInstance<Props, Controller, Methods>;
|
|
481
|
+
event: Event;
|
|
440
482
|
}
|
|
441
483
|
): JSX.Element;
|
|
442
484
|
nest?({
|
|
443
485
|
props,
|
|
444
486
|
show,
|
|
445
|
-
hide
|
|
487
|
+
hide
|
|
446
488
|
}: {
|
|
447
489
|
props?: Props;
|
|
448
490
|
show?: boolean;
|
|
@@ -451,7 +493,7 @@ declare module "wallace" {
|
|
|
451
493
|
repeat?({
|
|
452
494
|
props,
|
|
453
495
|
show,
|
|
454
|
-
hide
|
|
496
|
+
hide
|
|
455
497
|
}: {
|
|
456
498
|
props: Array<Props>;
|
|
457
499
|
show?: boolean;
|
|
@@ -459,10 +501,10 @@ declare module "wallace" {
|
|
|
459
501
|
}): JSX.Element;
|
|
460
502
|
methods?(
|
|
461
503
|
object: ComponenMethods<Props, Controller> &
|
|
462
|
-
ThisType<
|
|
504
|
+
ThisType<ComponentInstance<Props, Controller, Methods>>
|
|
463
505
|
): void;
|
|
464
506
|
readonly prototype?: ComponenMethods<Props, Controller> &
|
|
465
|
-
ThisType<
|
|
507
|
+
ThisType<ComponentInstance<Props, Controller, Methods>>;
|
|
466
508
|
// Methods will not be available on nested component, so omit.
|
|
467
509
|
readonly stubs?: Record<string, ComponentFunction<Props, Controller>>;
|
|
468
510
|
}
|
|
@@ -491,16 +533,16 @@ declare module "wallace" {
|
|
|
491
533
|
export type Uses<
|
|
492
534
|
Props = any,
|
|
493
535
|
Controller = any,
|
|
494
|
-
Methods extends object = {}
|
|
536
|
+
Methods extends object = {}
|
|
495
537
|
> = ComponentFunction<Props, Controller, Methods>;
|
|
496
538
|
|
|
497
539
|
/**
|
|
498
540
|
* The type for a component instance.
|
|
499
541
|
*/
|
|
500
|
-
export type
|
|
542
|
+
export type ComponentInstance<
|
|
501
543
|
Props = any,
|
|
502
544
|
Controller = any,
|
|
503
|
-
Methods extends object = {}
|
|
545
|
+
Methods extends object = {}
|
|
504
546
|
> = {
|
|
505
547
|
update(): void;
|
|
506
548
|
render(props: Props, ctrl?: Controller): void;
|
|
@@ -509,6 +551,14 @@ declare module "wallace" {
|
|
|
509
551
|
ctrl: Controller;
|
|
510
552
|
} & Methods;
|
|
511
553
|
|
|
554
|
+
/**
|
|
555
|
+
* The component constructor function (typed as a class, but isn't).
|
|
556
|
+
*/
|
|
557
|
+
export class Component<Props = any, Controller = any> {
|
|
558
|
+
update(): void;
|
|
559
|
+
render(props: Props, ctrl?: Controller): void;
|
|
560
|
+
}
|
|
561
|
+
|
|
512
562
|
/**
|
|
513
563
|
* Use to define a new component which extends another component, meaning it will
|
|
514
564
|
* inherit its prototye and stubs.
|
|
@@ -521,7 +571,7 @@ declare module "wallace" {
|
|
|
521
571
|
export function extendComponent<
|
|
522
572
|
Props = any,
|
|
523
573
|
Controller = any,
|
|
524
|
-
Methods extends object = {}
|
|
574
|
+
Methods extends object = {}
|
|
525
575
|
>(
|
|
526
576
|
base: Uses<Props, Controller, Methods>,
|
|
527
577
|
componentFunc?: ComponentFunction<Props, Controller, Methods>
|
|
@@ -532,16 +582,12 @@ declare module "wallace" {
|
|
|
532
582
|
*
|
|
533
583
|
* Note that the original element is removed along with its attributes (class, id...).
|
|
534
584
|
*/
|
|
535
|
-
export function mount<
|
|
536
|
-
Props = any,
|
|
537
|
-
Controller = any,
|
|
538
|
-
Methods extends object = {},
|
|
539
|
-
>(
|
|
585
|
+
export function mount<Props = any, Controller = any, Methods extends object = {}>(
|
|
540
586
|
element: string | HTMLElement,
|
|
541
587
|
componentDefinition: Uses<Props, Controller, Methods>,
|
|
542
588
|
props?: Props,
|
|
543
589
|
ctrl?: Controller
|
|
544
|
-
):
|
|
590
|
+
): ComponentInstance<Props, Controller, Methods>;
|
|
545
591
|
|
|
546
592
|
/**
|
|
547
593
|
* Returns a Proxy of an object which calls `callback` when keys are set, and this
|
|
@@ -560,19 +606,15 @@ declare module "wallace" {
|
|
|
560
606
|
* The callback does not indicate the data has changed, only that a key was set.
|
|
561
607
|
*
|
|
562
608
|
* Some methods like `Array.push` set the index and then the length immediately after,
|
|
563
|
-
* so we use a
|
|
609
|
+
* so we use a timeout period to avoid calling the callback twice for what is really a
|
|
564
610
|
* single operation.
|
|
565
611
|
*
|
|
566
612
|
* @param {*} target - Any object, including arrays.
|
|
567
|
-
* @param {*}
|
|
613
|
+
* @param {*} timeout - Any value in ms. Defaults to 100.
|
|
568
614
|
* @param {*} callback - A callback function.
|
|
569
615
|
* @returns a Proxy of the object.
|
|
570
616
|
*/
|
|
571
|
-
export function watch<T>(
|
|
572
|
-
target: T,
|
|
573
|
-
callback: CallableFunction,
|
|
574
|
-
grace?: number
|
|
575
|
-
): T;
|
|
617
|
+
export function watch<T>(target: T, callback: CallableFunction, timeout?: number): T;
|
|
576
618
|
}
|
|
577
619
|
|
|
578
620
|
type MustBeExpression = Exclude<any, string>;
|
|
@@ -583,14 +625,25 @@ type MustBeExpression = Exclude<any, string>;
|
|
|
583
625
|
*/
|
|
584
626
|
interface DirectiveAttributes extends AllDomEvents {
|
|
585
627
|
/**
|
|
586
|
-
* ## Wallace directive:
|
|
628
|
+
* ## Wallace directive: apply
|
|
629
|
+
*
|
|
630
|
+
* Applies a callback, typically to modify its element, which is accessible via
|
|
631
|
+
* **xargs**.
|
|
587
632
|
*
|
|
588
|
-
*
|
|
633
|
+
* Note that you can use `element` from **xargs** multiple times and each will refer
|
|
634
|
+
* to the element where it is used.
|
|
635
|
+
*
|
|
636
|
+
* ```
|
|
637
|
+
* const MyComponent = (_, { element }) => (
|
|
638
|
+
* <div>
|
|
639
|
+
* <div apply={doSomething(element)}></div>
|
|
640
|
+
* <div apply={doSomethingElse(element)}></div>
|
|
641
|
+
* </div>
|
|
642
|
+
* );
|
|
643
|
+
* ```
|
|
589
644
|
*
|
|
590
|
-
* This allows you to inherit methods and override stubs.
|
|
591
|
-
* Must be an expression returning a component definition.
|
|
592
645
|
*/
|
|
593
|
-
|
|
646
|
+
apply?: MustBeExpression;
|
|
594
647
|
|
|
595
648
|
/**
|
|
596
649
|
* ## Wallace directive: bind
|
|
@@ -612,16 +665,16 @@ interface DirectiveAttributes extends AllDomEvents {
|
|
|
612
665
|
* Is the equivalent of this:
|
|
613
666
|
*
|
|
614
667
|
*```
|
|
615
|
-
* const MyComponent = ({name}, {
|
|
616
|
-
* <input type="text" onChange={name =
|
|
668
|
+
* const MyComponent = ({name}, {event}) => (
|
|
669
|
+
* <input type="text" onChange={name = event.target.value} value={name}/>
|
|
617
670
|
* );
|
|
618
671
|
* ```
|
|
619
672
|
*
|
|
620
673
|
* In the case of a checkbox it uses `checked` instead of `value`, so is the equivalent of this:
|
|
621
674
|
*
|
|
622
675
|
* ```
|
|
623
|
-
* const MyComponent = ({done}, {
|
|
624
|
-
* <input type="checkbox" onChange={done =
|
|
676
|
+
* const MyComponent = ({done}, {event}) => (
|
|
677
|
+
* <input type="checkbox" onChange={done = event.target.checked} checked={done}/>
|
|
625
678
|
* );
|
|
626
679
|
* ```
|
|
627
680
|
*
|
|
@@ -666,6 +719,12 @@ interface DirectiveAttributes extends AllDomEvents {
|
|
|
666
719
|
*/
|
|
667
720
|
hide?: MustBeExpression;
|
|
668
721
|
|
|
722
|
+
/** ## Wallace directive: html
|
|
723
|
+
*
|
|
724
|
+
* Set the element's `innnerHTML` property.
|
|
725
|
+
*/
|
|
726
|
+
html?: MustBeExpression;
|
|
727
|
+
|
|
669
728
|
/** Wallace excludes this element from the DOM if the condition is false,
|
|
670
729
|
* and does not render dynamic elements underneath. */
|
|
671
730
|
if?: MustBeExpression;
|
|
@@ -748,11 +807,20 @@ declare namespace JSX {
|
|
|
748
807
|
|
|
749
808
|
interface IntrinsicElements {
|
|
750
809
|
/**
|
|
810
|
+
* Nesting syntax:
|
|
811
|
+
* ```
|
|
812
|
+
* <MyComponent.nest props={singleProps} />
|
|
813
|
+
* <MyComponent.repeat props={arrayOfProps} />
|
|
814
|
+
* ```
|
|
815
|
+
* But note that repeat must not have siblings.
|
|
816
|
+
*
|
|
751
817
|
* Available Wallace directives:
|
|
752
818
|
*
|
|
819
|
+
* - `apply` runs a callback to modify an element.
|
|
753
820
|
* - `bind` updates a value when an input is changed.
|
|
754
821
|
* - `class:xyz` defines a set of classes to be toggled.
|
|
755
|
-
* - `hide` sets
|
|
822
|
+
* - `hide` sets an element or component's hidden property.
|
|
823
|
+
* - `html` Set the element's `innnerHTML` property.
|
|
756
824
|
* - `if` excludes an element from the DOM.
|
|
757
825
|
* - `on[EventName]` creates an event handler (note the code is copied)
|
|
758
826
|
* - `props` specifes props for a nested or repeated component, in which case it must be
|
|
@@ -777,882 +845,970 @@ declare namespace JSX {
|
|
|
777
845
|
*/
|
|
778
846
|
interface AllDomEvents {
|
|
779
847
|
/**
|
|
780
|
-
* Wallace
|
|
848
|
+
* ## Wallace event handler
|
|
849
|
+
*
|
|
850
|
+
* Note the code is copied. Use xargs to access the event:
|
|
781
851
|
*
|
|
782
|
-
* Use xargs to access the event or element:
|
|
783
852
|
* ```
|
|
784
|
-
* const MyComponent = (_, {
|
|
785
|
-
* <button onClick={clickHandler(
|
|
853
|
+
* const MyComponent = (_, { event }) => (
|
|
854
|
+
* <button onClick={clickHandler(event)} />
|
|
786
855
|
* );
|
|
787
856
|
* ```
|
|
788
857
|
*/ onAbort?: any;
|
|
789
858
|
/**
|
|
790
|
-
* Wallace
|
|
859
|
+
* ## Wallace event handler.
|
|
860
|
+
*
|
|
861
|
+
* Use xargs to access the event:
|
|
791
862
|
*
|
|
792
|
-
* Use xargs to access the event or element:
|
|
793
863
|
* ```
|
|
794
|
-
* const MyComponent = (_, {
|
|
795
|
-
* <button onClick={clickHandler(
|
|
864
|
+
* const MyComponent = (_, { event }) => (
|
|
865
|
+
* <button onClick={clickHandler(event)} />
|
|
796
866
|
* );
|
|
797
867
|
* ```
|
|
798
868
|
*/ onAnimationCancel?: any;
|
|
799
869
|
/**
|
|
800
|
-
* Wallace
|
|
870
|
+
* ## Wallace event handler
|
|
871
|
+
*
|
|
872
|
+
* Note the code is copied. Use xargs to access the event:
|
|
801
873
|
*
|
|
802
|
-
* Use xargs to access the event or element:
|
|
803
874
|
* ```
|
|
804
|
-
* const MyComponent = (_, {
|
|
805
|
-
* <button onClick={clickHandler(
|
|
875
|
+
* const MyComponent = (_, { event }) => (
|
|
876
|
+
* <button onClick={clickHandler(event)} />
|
|
806
877
|
* );
|
|
807
878
|
* ```
|
|
808
879
|
*/ onAnimationEnd?: any;
|
|
809
880
|
/**
|
|
810
|
-
* Wallace
|
|
881
|
+
* ## Wallace event handler
|
|
882
|
+
*
|
|
883
|
+
* Note the code is copied. Use xargs to access the event:
|
|
811
884
|
*
|
|
812
|
-
* Use xargs to access the event or element:
|
|
813
885
|
* ```
|
|
814
|
-
* const MyComponent = (_, {
|
|
815
|
-
* <button onClick={clickHandler(
|
|
886
|
+
* const MyComponent = (_, { event }) => (
|
|
887
|
+
* <button onClick={clickHandler(event)} />
|
|
816
888
|
* );
|
|
817
889
|
* ```
|
|
818
890
|
*/ onAnimationIteration?: any;
|
|
819
891
|
/**
|
|
820
|
-
* Wallace
|
|
892
|
+
* ## Wallace event handler
|
|
893
|
+
*
|
|
894
|
+
* Note the code is copied. Use xargs to access the event:
|
|
821
895
|
*
|
|
822
|
-
* Use xargs to access the event or element:
|
|
823
896
|
* ```
|
|
824
|
-
* const MyComponent = (_, {
|
|
825
|
-
* <button onClick={clickHandler(
|
|
897
|
+
* const MyComponent = (_, { event }) => (
|
|
898
|
+
* <button onClick={clickHandler(event)} />
|
|
826
899
|
* );
|
|
827
900
|
* ```
|
|
828
901
|
*/ onAnimationStart?: any;
|
|
829
902
|
/**
|
|
830
|
-
* Wallace
|
|
903
|
+
* ## Wallace event handler
|
|
904
|
+
*
|
|
905
|
+
* Note the code is copied. Use xargs to access the event:
|
|
831
906
|
*
|
|
832
|
-
* Use xargs to access the event or element:
|
|
833
907
|
* ```
|
|
834
|
-
* const MyComponent = (_, {
|
|
835
|
-
* <button onClick={clickHandler(
|
|
908
|
+
* const MyComponent = (_, { event }) => (
|
|
909
|
+
* <button onClick={clickHandler(event)} />
|
|
836
910
|
* );
|
|
837
911
|
* ```
|
|
838
912
|
*/ onAuxClick?: any;
|
|
839
913
|
/**
|
|
840
|
-
* Wallace
|
|
914
|
+
* ## Wallace event handler
|
|
915
|
+
*
|
|
916
|
+
* Note the code is copied. Use xargs to access the event:
|
|
841
917
|
*
|
|
842
|
-
* Use xargs to access the event or element:
|
|
843
918
|
* ```
|
|
844
|
-
* const MyComponent = (_, {
|
|
845
|
-
* <button onClick={clickHandler(
|
|
919
|
+
* const MyComponent = (_, { event }) => (
|
|
920
|
+
* <button onClick={clickHandler(event)} />
|
|
846
921
|
* );
|
|
847
922
|
* ```
|
|
848
923
|
*/ onBeforeInput?: any;
|
|
849
924
|
/**
|
|
850
|
-
* Wallace
|
|
925
|
+
* ## Wallace event handler
|
|
926
|
+
*
|
|
927
|
+
* Note the code is copied. Use xargs to access the event:
|
|
851
928
|
*
|
|
852
|
-
* Use xargs to access the event or element:
|
|
853
929
|
* ```
|
|
854
|
-
* const MyComponent = (_, {
|
|
855
|
-
* <button onClick={clickHandler(
|
|
930
|
+
* const MyComponent = (_, { event }) => (
|
|
931
|
+
* <button onClick={clickHandler(event)} />
|
|
856
932
|
* );
|
|
857
933
|
* ```
|
|
858
934
|
*/ onBlur?: any;
|
|
859
935
|
/**
|
|
860
|
-
* Wallace
|
|
936
|
+
* ## Wallace event handler
|
|
937
|
+
*
|
|
938
|
+
* Note the code is copied. Use xargs to access the event:
|
|
861
939
|
*
|
|
862
|
-
* Use xargs to access the event or element:
|
|
863
940
|
* ```
|
|
864
|
-
* const MyComponent = (_, {
|
|
865
|
-
* <button onClick={clickHandler(
|
|
941
|
+
* const MyComponent = (_, { event }) => (
|
|
942
|
+
* <button onClick={clickHandler(event)} />
|
|
866
943
|
* );
|
|
867
944
|
* ```
|
|
868
945
|
*/ onCancel?: any;
|
|
869
946
|
/**
|
|
870
|
-
* Wallace
|
|
947
|
+
* ## Wallace event handler
|
|
948
|
+
*
|
|
949
|
+
* Note the code is copied. Use xargs to access the event:
|
|
871
950
|
*
|
|
872
|
-
* Use xargs to access the event or element:
|
|
873
951
|
* ```
|
|
874
|
-
* const MyComponent = (_, {
|
|
875
|
-
* <button onClick={clickHandler(
|
|
952
|
+
* const MyComponent = (_, { event }) => (
|
|
953
|
+
* <button onClick={clickHandler(event)} />
|
|
876
954
|
* );
|
|
877
955
|
* ```
|
|
878
956
|
*/ onCanPlay?: any;
|
|
879
957
|
/**
|
|
880
|
-
* Wallace
|
|
958
|
+
* ## Wallace event handler
|
|
959
|
+
*
|
|
960
|
+
* Note the code is copied. Use xargs to access the event:
|
|
881
961
|
*
|
|
882
|
-
* Use xargs to access the event or element:
|
|
883
962
|
* ```
|
|
884
|
-
* const MyComponent = (_, {
|
|
885
|
-
* <button onClick={clickHandler(
|
|
963
|
+
* const MyComponent = (_, { event }) => (
|
|
964
|
+
* <button onClick={clickHandler(event)} />
|
|
886
965
|
* );
|
|
887
966
|
* ```
|
|
888
967
|
*/ onCanPlayThrough?: any;
|
|
889
968
|
/**
|
|
890
|
-
* Wallace
|
|
969
|
+
* ## Wallace event handler
|
|
970
|
+
*
|
|
971
|
+
* Note the code is copied. Use xargs to access the event:
|
|
891
972
|
*
|
|
892
|
-
* Use xargs to access the event or element:
|
|
893
973
|
* ```
|
|
894
|
-
* const MyComponent = (_, {
|
|
895
|
-
* <button onClick={clickHandler(
|
|
974
|
+
* const MyComponent = (_, { event }) => (
|
|
975
|
+
* <button onClick={clickHandler(event)} />
|
|
896
976
|
* );
|
|
897
977
|
* ```
|
|
898
978
|
*/ onChange?: any;
|
|
899
979
|
/**
|
|
900
|
-
* Wallace
|
|
980
|
+
* ## Wallace event handler
|
|
981
|
+
*
|
|
982
|
+
* Note the code is copied. Use xargs to access the event:
|
|
901
983
|
*
|
|
902
|
-
* Use xargs to access the event or element:
|
|
903
984
|
* ```
|
|
904
|
-
* const MyComponent = (_, {
|
|
905
|
-
* <button onClick={clickHandler(
|
|
985
|
+
* const MyComponent = (_, { event }) => (
|
|
986
|
+
* <button onClick={clickHandler(event)} />
|
|
906
987
|
* );
|
|
907
988
|
* ```
|
|
908
989
|
*/ onClick?: any;
|
|
909
990
|
/**
|
|
910
|
-
* Wallace
|
|
991
|
+
* ## Wallace event handler
|
|
992
|
+
*
|
|
993
|
+
* Note the code is copied. Use xargs to access the event:
|
|
911
994
|
*
|
|
912
|
-
* Use xargs to access the event or element:
|
|
913
995
|
* ```
|
|
914
|
-
* const MyComponent = (_, {
|
|
915
|
-
* <button onClick={clickHandler(
|
|
996
|
+
* const MyComponent = (_, { event }) => (
|
|
997
|
+
* <button onClick={clickHandler(event)} />
|
|
916
998
|
* );
|
|
917
999
|
* ```
|
|
918
1000
|
*/ onClose?: any;
|
|
919
1001
|
/**
|
|
920
|
-
* Wallace
|
|
1002
|
+
* ## Wallace event handler
|
|
1003
|
+
*
|
|
1004
|
+
* Note the code is copied. Use xargs to access the event:
|
|
921
1005
|
*
|
|
922
|
-
* Use xargs to access the event or element:
|
|
923
1006
|
* ```
|
|
924
|
-
* const MyComponent = (_, {
|
|
925
|
-
* <button onClick={clickHandler(
|
|
1007
|
+
* const MyComponent = (_, { event }) => (
|
|
1008
|
+
* <button onClick={clickHandler(event)} />
|
|
926
1009
|
* );
|
|
927
1010
|
* ```
|
|
928
1011
|
*/ onContextMenu?: any;
|
|
929
1012
|
/**
|
|
930
|
-
* Wallace
|
|
1013
|
+
* ## Wallace event handler
|
|
1014
|
+
*
|
|
1015
|
+
* Note the code is copied. Use xargs to access the event:
|
|
931
1016
|
*
|
|
932
|
-
* Use xargs to access the event or element:
|
|
933
1017
|
* ```
|
|
934
|
-
* const MyComponent = (_, {
|
|
935
|
-
* <button onClick={clickHandler(
|
|
1018
|
+
* const MyComponent = (_, { event }) => (
|
|
1019
|
+
* <button onClick={clickHandler(event)} />
|
|
936
1020
|
* );
|
|
937
1021
|
* ```
|
|
938
1022
|
*/ onCopy?: any;
|
|
939
1023
|
/**
|
|
940
|
-
* Wallace
|
|
1024
|
+
* ## Wallace event handler
|
|
1025
|
+
*
|
|
1026
|
+
* Note the code is copied. Use xargs to access the event:
|
|
941
1027
|
*
|
|
942
|
-
* Use xargs to access the event or element:
|
|
943
1028
|
* ```
|
|
944
|
-
* const MyComponent = (_, {
|
|
945
|
-
* <button onClick={clickHandler(
|
|
1029
|
+
* const MyComponent = (_, { event }) => (
|
|
1030
|
+
* <button onClick={clickHandler(event)} />
|
|
946
1031
|
* );
|
|
947
1032
|
* ```
|
|
948
1033
|
*/ onCueChange?: any;
|
|
949
1034
|
/**
|
|
950
|
-
* Wallace
|
|
1035
|
+
* ## Wallace event handler
|
|
1036
|
+
*
|
|
1037
|
+
* Note the code is copied. Use xargs to access the event:
|
|
951
1038
|
*
|
|
952
|
-
* Use xargs to access the event or element:
|
|
953
1039
|
* ```
|
|
954
|
-
* const MyComponent = (_, {
|
|
955
|
-
* <button onClick={clickHandler(
|
|
1040
|
+
* const MyComponent = (_, { event }) => (
|
|
1041
|
+
* <button onClick={clickHandler(event)} />
|
|
956
1042
|
* );
|
|
957
1043
|
* ```
|
|
958
1044
|
*/ onCut?: any;
|
|
959
1045
|
/**
|
|
960
|
-
* Wallace
|
|
1046
|
+
* ## Wallace event handler
|
|
1047
|
+
*
|
|
1048
|
+
* Note the code is copied. Use xargs to access the event:
|
|
961
1049
|
*
|
|
962
|
-
* Use xargs to access the event or element:
|
|
963
1050
|
* ```
|
|
964
|
-
* const MyComponent = (_, {
|
|
965
|
-
* <button onClick={clickHandler(
|
|
1051
|
+
* const MyComponent = (_, { event }) => (
|
|
1052
|
+
* <button onClick={clickHandler(event)} />
|
|
966
1053
|
* );
|
|
967
1054
|
* ```
|
|
968
1055
|
*/ onDblClick?: any;
|
|
969
1056
|
/**
|
|
970
|
-
* Wallace
|
|
1057
|
+
* ## Wallace event handler
|
|
1058
|
+
*
|
|
1059
|
+
* Note the code is copied. Use xargs to access the event:
|
|
971
1060
|
*
|
|
972
|
-
* Use xargs to access the event or element:
|
|
973
1061
|
* ```
|
|
974
|
-
* const MyComponent = (_, {
|
|
975
|
-
* <button onClick={clickHandler(
|
|
1062
|
+
* const MyComponent = (_, { event }) => (
|
|
1063
|
+
* <button onClick={clickHandler(event)} />
|
|
976
1064
|
* );
|
|
977
1065
|
* ```
|
|
978
1066
|
*/ onDrag?: any;
|
|
979
1067
|
/**
|
|
980
|
-
* Wallace
|
|
1068
|
+
* ## Wallace event handler
|
|
1069
|
+
*
|
|
1070
|
+
* Note the code is copied. Use xargs to access the event:
|
|
981
1071
|
*
|
|
982
|
-
* Use xargs to access the event or element:
|
|
983
1072
|
* ```
|
|
984
|
-
* const MyComponent = (_, {
|
|
985
|
-
* <button onClick={clickHandler(
|
|
1073
|
+
* const MyComponent = (_, { event }) => (
|
|
1074
|
+
* <button onClick={clickHandler(event)} />
|
|
986
1075
|
* );
|
|
987
1076
|
* ```
|
|
988
1077
|
*/ onDragEnd?: any;
|
|
989
1078
|
/**
|
|
990
|
-
* Wallace
|
|
1079
|
+
* ## Wallace event handler
|
|
1080
|
+
*
|
|
1081
|
+
* Note the code is copied. Use xargs to access the event:
|
|
991
1082
|
*
|
|
992
|
-
* Use xargs to access the event or element:
|
|
993
1083
|
* ```
|
|
994
|
-
* const MyComponent = (_, {
|
|
995
|
-
* <button onClick={clickHandler(
|
|
1084
|
+
* const MyComponent = (_, { event }) => (
|
|
1085
|
+
* <button onClick={clickHandler(event)} />
|
|
996
1086
|
* );
|
|
997
1087
|
* ```
|
|
998
1088
|
*/ onDragEnter?: any;
|
|
999
1089
|
/**
|
|
1000
|
-
* Wallace
|
|
1090
|
+
* ## Wallace event handler
|
|
1091
|
+
*
|
|
1092
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1001
1093
|
*
|
|
1002
|
-
* Use xargs to access the event or element:
|
|
1003
1094
|
* ```
|
|
1004
|
-
* const MyComponent = (_, {
|
|
1005
|
-
* <button onClick={clickHandler(
|
|
1095
|
+
* const MyComponent = (_, { event }) => (
|
|
1096
|
+
* <button onClick={clickHandler(event)} />
|
|
1006
1097
|
* );
|
|
1007
1098
|
* ```
|
|
1008
1099
|
*/ onDragLeave?: any;
|
|
1009
1100
|
/**
|
|
1010
|
-
* Wallace
|
|
1101
|
+
* ## Wallace event handler
|
|
1102
|
+
*
|
|
1103
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1011
1104
|
*
|
|
1012
|
-
* Use xargs to access the event or element:
|
|
1013
1105
|
* ```
|
|
1014
|
-
* const MyComponent = (_, {
|
|
1015
|
-
* <button onClick={clickHandler(
|
|
1106
|
+
* const MyComponent = (_, { event }) => (
|
|
1107
|
+
* <button onClick={clickHandler(event)} />
|
|
1016
1108
|
* );
|
|
1017
1109
|
* ```
|
|
1018
1110
|
*/ onDragOver?: any;
|
|
1019
1111
|
/**
|
|
1020
|
-
* Wallace
|
|
1112
|
+
* ## Wallace event handler
|
|
1113
|
+
*
|
|
1114
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1021
1115
|
*
|
|
1022
|
-
* Use xargs to access the event or element:
|
|
1023
1116
|
* ```
|
|
1024
|
-
* const MyComponent = (_, {
|
|
1025
|
-
* <button onClick={clickHandler(
|
|
1117
|
+
* const MyComponent = (_, { event }) => (
|
|
1118
|
+
* <button onClick={clickHandler(event)} />
|
|
1026
1119
|
* );
|
|
1027
1120
|
* ```
|
|
1028
1121
|
*/ onDragStart?: any;
|
|
1029
1122
|
/**
|
|
1030
|
-
* Wallace
|
|
1123
|
+
* ## Wallace event handler
|
|
1124
|
+
*
|
|
1125
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1031
1126
|
*
|
|
1032
|
-
* Use xargs to access the event or element:
|
|
1033
1127
|
* ```
|
|
1034
|
-
* const MyComponent = (_, {
|
|
1035
|
-
* <button onClick={clickHandler(
|
|
1128
|
+
* const MyComponent = (_, { event }) => (
|
|
1129
|
+
* <button onClick={clickHandler(event)} />
|
|
1036
1130
|
* );
|
|
1037
1131
|
* ```
|
|
1038
1132
|
*/ onDrop?: any;
|
|
1039
1133
|
/**
|
|
1040
|
-
* Wallace
|
|
1134
|
+
* ## Wallace event handler
|
|
1135
|
+
*
|
|
1136
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1041
1137
|
*
|
|
1042
|
-
* Use xargs to access the event or element:
|
|
1043
1138
|
* ```
|
|
1044
|
-
* const MyComponent = (_, {
|
|
1045
|
-
* <button onClick={clickHandler(
|
|
1139
|
+
* const MyComponent = (_, { event }) => (
|
|
1140
|
+
* <button onClick={clickHandler(event)} />
|
|
1046
1141
|
* );
|
|
1047
1142
|
* ```
|
|
1048
1143
|
*/ onDurationChange?: any;
|
|
1049
1144
|
/**
|
|
1050
|
-
* Wallace
|
|
1145
|
+
* ## Wallace event handler
|
|
1146
|
+
*
|
|
1147
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1051
1148
|
*
|
|
1052
|
-
* Use xargs to access the event or element:
|
|
1053
1149
|
* ```
|
|
1054
|
-
* const MyComponent = (_, {
|
|
1055
|
-
* <button onClick={clickHandler(
|
|
1150
|
+
* const MyComponent = (_, { event }) => (
|
|
1151
|
+
* <button onClick={clickHandler(event)} />
|
|
1056
1152
|
* );
|
|
1057
1153
|
* ```
|
|
1058
1154
|
*/ onEmptied?: any;
|
|
1059
1155
|
/**
|
|
1060
|
-
* Wallace
|
|
1156
|
+
* ## Wallace event handler
|
|
1157
|
+
*
|
|
1158
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1061
1159
|
*
|
|
1062
|
-
* Use xargs to access the event or element:
|
|
1063
1160
|
* ```
|
|
1064
|
-
* const MyComponent = (_, {
|
|
1065
|
-
* <button onClick={clickHandler(
|
|
1161
|
+
* const MyComponent = (_, { event }) => (
|
|
1162
|
+
* <button onClick={clickHandler(event)} />
|
|
1066
1163
|
* );
|
|
1067
1164
|
* ```
|
|
1068
1165
|
*/ onEnded?: any;
|
|
1069
1166
|
/**
|
|
1070
|
-
* Wallace
|
|
1167
|
+
* ## Wallace event handler
|
|
1168
|
+
*
|
|
1169
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1071
1170
|
*
|
|
1072
|
-
* Use xargs to access the event or element:
|
|
1073
1171
|
* ```
|
|
1074
|
-
* const MyComponent = (_, {
|
|
1075
|
-
* <button onClick={clickHandler(
|
|
1172
|
+
* const MyComponent = (_, { event }) => (
|
|
1173
|
+
* <button onClick={clickHandler(event)} />
|
|
1076
1174
|
* );
|
|
1077
1175
|
* ```
|
|
1078
1176
|
*/ onError?: any;
|
|
1079
1177
|
/**
|
|
1080
|
-
* Wallace
|
|
1178
|
+
* ## Wallace event handler
|
|
1179
|
+
*
|
|
1180
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1081
1181
|
*
|
|
1082
|
-
* Use xargs to access the event or element:
|
|
1083
1182
|
* ```
|
|
1084
|
-
* const MyComponent = (_, {
|
|
1085
|
-
* <button onClick={clickHandler(
|
|
1183
|
+
* const MyComponent = (_, { event }) => (
|
|
1184
|
+
* <button onClick={clickHandler(event)} />
|
|
1086
1185
|
* );
|
|
1087
1186
|
* ```
|
|
1088
1187
|
*/ onFocus?: any;
|
|
1089
1188
|
/**
|
|
1090
|
-
* Wallace
|
|
1189
|
+
* ## Wallace event handler
|
|
1190
|
+
*
|
|
1191
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1091
1192
|
*
|
|
1092
|
-
* Use xargs to access the event or element:
|
|
1093
1193
|
* ```
|
|
1094
|
-
* const MyComponent = (_, {
|
|
1095
|
-
* <button onClick={clickHandler(
|
|
1194
|
+
* const MyComponent = (_, { event }) => (
|
|
1195
|
+
* <button onClick={clickHandler(event)} />
|
|
1096
1196
|
* );
|
|
1097
1197
|
* ```
|
|
1098
1198
|
*/ onFormData?: any;
|
|
1099
1199
|
/**
|
|
1100
|
-
* Wallace
|
|
1200
|
+
* ## Wallace event handler
|
|
1201
|
+
*
|
|
1202
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1101
1203
|
*
|
|
1102
|
-
* Use xargs to access the event or element:
|
|
1103
1204
|
* ```
|
|
1104
|
-
* const MyComponent = (_, {
|
|
1105
|
-
* <button onClick={clickHandler(
|
|
1205
|
+
* const MyComponent = (_, { event }) => (
|
|
1206
|
+
* <button onClick={clickHandler(event)} />
|
|
1106
1207
|
* );
|
|
1107
1208
|
* ```
|
|
1108
1209
|
*/ onGotPointerCapture?: any;
|
|
1109
1210
|
/**
|
|
1110
|
-
* Wallace
|
|
1211
|
+
* ## Wallace event handler
|
|
1212
|
+
*
|
|
1213
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1111
1214
|
*
|
|
1112
|
-
* Use xargs to access the event or element:
|
|
1113
1215
|
* ```
|
|
1114
|
-
* const MyComponent = (_, {
|
|
1115
|
-
* <button onClick={clickHandler(
|
|
1216
|
+
* const MyComponent = (_, { event }) => (
|
|
1217
|
+
* <button onClick={clickHandler(event)} />
|
|
1116
1218
|
* );
|
|
1117
1219
|
* ```
|
|
1118
1220
|
*/ onInput?: any;
|
|
1119
1221
|
/**
|
|
1120
|
-
* Wallace
|
|
1222
|
+
* ## Wallace event handler
|
|
1223
|
+
*
|
|
1224
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1121
1225
|
*
|
|
1122
|
-
* Use xargs to access the event or element:
|
|
1123
1226
|
* ```
|
|
1124
|
-
* const MyComponent = (_, {
|
|
1125
|
-
* <button onClick={clickHandler(
|
|
1227
|
+
* const MyComponent = (_, { event }) => (
|
|
1228
|
+
* <button onClick={clickHandler(event)} />
|
|
1126
1229
|
* );
|
|
1127
1230
|
* ```
|
|
1128
1231
|
*/ onInvalid?: any;
|
|
1129
1232
|
/**
|
|
1130
|
-
* Wallace
|
|
1233
|
+
* ## Wallace event handler
|
|
1234
|
+
*
|
|
1235
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1131
1236
|
*
|
|
1132
|
-
* Use xargs to access the event or element:
|
|
1133
1237
|
* ```
|
|
1134
|
-
* const MyComponent = (_, {
|
|
1135
|
-
* <button onClick={clickHandler(
|
|
1238
|
+
* const MyComponent = (_, { event }) => (
|
|
1239
|
+
* <button onClick={clickHandler(event)} />
|
|
1136
1240
|
* );
|
|
1137
1241
|
* ```
|
|
1138
1242
|
*/ onKeyDown?: any;
|
|
1139
1243
|
/**
|
|
1140
|
-
* Wallace
|
|
1244
|
+
* ## Wallace event handler
|
|
1245
|
+
*
|
|
1246
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1141
1247
|
*
|
|
1142
|
-
* Use xargs to access the event or element:
|
|
1143
1248
|
* ```
|
|
1144
|
-
* const MyComponent = (_, {
|
|
1145
|
-
* <button onClick={clickHandler(
|
|
1249
|
+
* const MyComponent = (_, { event }) => (
|
|
1250
|
+
* <button onClick={clickHandler(event)} />
|
|
1146
1251
|
* );
|
|
1147
1252
|
* ```
|
|
1148
1253
|
*/ onKeyPress?: any;
|
|
1149
1254
|
/**
|
|
1150
|
-
* Wallace
|
|
1255
|
+
* ## Wallace event handler
|
|
1256
|
+
*
|
|
1257
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1151
1258
|
*
|
|
1152
|
-
* Use xargs to access the event or element:
|
|
1153
1259
|
* ```
|
|
1154
|
-
* const MyComponent = (_, {
|
|
1155
|
-
* <button onClick={clickHandler(
|
|
1260
|
+
* const MyComponent = (_, { event }) => (
|
|
1261
|
+
* <button onClick={clickHandler(event)} />
|
|
1156
1262
|
* );
|
|
1157
1263
|
* ```
|
|
1158
1264
|
*/ onKeyUp?: any;
|
|
1159
1265
|
/**
|
|
1160
|
-
* Wallace
|
|
1266
|
+
* ## Wallace event handler
|
|
1267
|
+
*
|
|
1268
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1161
1269
|
*
|
|
1162
|
-
* Use xargs to access the event or element:
|
|
1163
1270
|
* ```
|
|
1164
|
-
* const MyComponent = (_, {
|
|
1165
|
-
* <button onClick={clickHandler(
|
|
1271
|
+
* const MyComponent = (_, { event }) => (
|
|
1272
|
+
* <button onClick={clickHandler(event)} />
|
|
1166
1273
|
* );
|
|
1167
1274
|
* ```
|
|
1168
1275
|
*/ onLoad?: any;
|
|
1169
1276
|
/**
|
|
1170
|
-
* Wallace
|
|
1277
|
+
* ## Wallace event handler
|
|
1278
|
+
*
|
|
1279
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1171
1280
|
*
|
|
1172
|
-
* Use xargs to access the event or element:
|
|
1173
1281
|
* ```
|
|
1174
|
-
* const MyComponent = (_, {
|
|
1175
|
-
* <button onClick={clickHandler(
|
|
1282
|
+
* const MyComponent = (_, { event }) => (
|
|
1283
|
+
* <button onClick={clickHandler(event)} />
|
|
1176
1284
|
* );
|
|
1177
1285
|
* ```
|
|
1178
1286
|
*/ onLoadedData?: any;
|
|
1179
1287
|
/**
|
|
1180
|
-
* Wallace
|
|
1288
|
+
* ## Wallace event handler
|
|
1289
|
+
*
|
|
1290
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1181
1291
|
*
|
|
1182
|
-
* Use xargs to access the event or element:
|
|
1183
1292
|
* ```
|
|
1184
|
-
* const MyComponent = (_, {
|
|
1185
|
-
* <button onClick={clickHandler(
|
|
1293
|
+
* const MyComponent = (_, { event }) => (
|
|
1294
|
+
* <button onClick={clickHandler(event)} />
|
|
1186
1295
|
* );
|
|
1187
1296
|
* ```
|
|
1188
1297
|
*/ onLoadedMetadata?: any;
|
|
1189
1298
|
/**
|
|
1190
|
-
* Wallace
|
|
1299
|
+
* ## Wallace event handler
|
|
1300
|
+
*
|
|
1301
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1191
1302
|
*
|
|
1192
|
-
* Use xargs to access the event or element:
|
|
1193
1303
|
* ```
|
|
1194
|
-
* const MyComponent = (_, {
|
|
1195
|
-
* <button onClick={clickHandler(
|
|
1304
|
+
* const MyComponent = (_, { event }) => (
|
|
1305
|
+
* <button onClick={clickHandler(event)} />
|
|
1196
1306
|
* );
|
|
1197
1307
|
* ```
|
|
1198
1308
|
*/ onLoadStart?: any;
|
|
1199
1309
|
/**
|
|
1200
|
-
* Wallace
|
|
1310
|
+
* ## Wallace event handler
|
|
1311
|
+
*
|
|
1312
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1201
1313
|
*
|
|
1202
|
-
* Use xargs to access the event or element:
|
|
1203
1314
|
* ```
|
|
1204
|
-
* const MyComponent = (_, {
|
|
1205
|
-
* <button onClick={clickHandler(
|
|
1315
|
+
* const MyComponent = (_, { event }) => (
|
|
1316
|
+
* <button onClick={clickHandler(event)} />
|
|
1206
1317
|
* );
|
|
1207
1318
|
* ```
|
|
1208
1319
|
*/ onLostPointerCapture?: any;
|
|
1209
1320
|
/**
|
|
1210
|
-
* Wallace
|
|
1321
|
+
* ## Wallace event handler
|
|
1322
|
+
*
|
|
1323
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1211
1324
|
*
|
|
1212
|
-
* Use xargs to access the event or element:
|
|
1213
1325
|
* ```
|
|
1214
|
-
* const MyComponent = (_, {
|
|
1215
|
-
* <button onClick={clickHandler(
|
|
1326
|
+
* const MyComponent = (_, { event }) => (
|
|
1327
|
+
* <button onClick={clickHandler(event)} />
|
|
1216
1328
|
* );
|
|
1217
1329
|
* ```
|
|
1218
1330
|
*/ onMouseDown?: any;
|
|
1219
1331
|
/**
|
|
1220
|
-
* Wallace
|
|
1332
|
+
* ## Wallace event handler
|
|
1333
|
+
*
|
|
1334
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1221
1335
|
*
|
|
1222
|
-
* Use xargs to access the event or element:
|
|
1223
1336
|
* ```
|
|
1224
|
-
* const MyComponent = (_, {
|
|
1225
|
-
* <button onClick={clickHandler(
|
|
1337
|
+
* const MyComponent = (_, { event }) => (
|
|
1338
|
+
* <button onClick={clickHandler(event)} />
|
|
1226
1339
|
* );
|
|
1227
1340
|
* ```
|
|
1228
1341
|
*/ onMouseEnter?: any;
|
|
1229
1342
|
/**
|
|
1230
|
-
* Wallace
|
|
1343
|
+
* ## Wallace event handler
|
|
1344
|
+
*
|
|
1345
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1231
1346
|
*
|
|
1232
|
-
* Use xargs to access the event or element:
|
|
1233
1347
|
* ```
|
|
1234
|
-
* const MyComponent = (_, {
|
|
1235
|
-
* <button onClick={clickHandler(
|
|
1348
|
+
* const MyComponent = (_, { event }) => (
|
|
1349
|
+
* <button onClick={clickHandler(event)} />
|
|
1236
1350
|
* );
|
|
1237
1351
|
* ```
|
|
1238
1352
|
*/ onMouseLeave?: any;
|
|
1239
1353
|
/**
|
|
1240
|
-
* Wallace
|
|
1354
|
+
* ## Wallace event handler
|
|
1355
|
+
*
|
|
1356
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1241
1357
|
*
|
|
1242
|
-
* Use xargs to access the event or element:
|
|
1243
1358
|
* ```
|
|
1244
|
-
* const MyComponent = (_, {
|
|
1245
|
-
* <button onClick={clickHandler(
|
|
1359
|
+
* const MyComponent = (_, { event }) => (
|
|
1360
|
+
* <button onClick={clickHandler(event)} />
|
|
1246
1361
|
* );
|
|
1247
1362
|
* ```
|
|
1248
1363
|
*/ onMouseMove?: any;
|
|
1249
1364
|
/**
|
|
1250
|
-
* Wallace
|
|
1365
|
+
* ## Wallace event handler
|
|
1366
|
+
*
|
|
1367
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1251
1368
|
*
|
|
1252
|
-
* Use xargs to access the event or element:
|
|
1253
1369
|
* ```
|
|
1254
|
-
* const MyComponent = (_, {
|
|
1255
|
-
* <button onClick={clickHandler(
|
|
1370
|
+
* const MyComponent = (_, { event }) => (
|
|
1371
|
+
* <button onClick={clickHandler(event)} />
|
|
1256
1372
|
* );
|
|
1257
1373
|
* ```
|
|
1258
1374
|
*/ onMouseOut?: any;
|
|
1259
1375
|
/**
|
|
1260
|
-
* Wallace
|
|
1376
|
+
* ## Wallace event handler
|
|
1377
|
+
*
|
|
1378
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1261
1379
|
*
|
|
1262
|
-
* Use xargs to access the event or element:
|
|
1263
1380
|
* ```
|
|
1264
|
-
* const MyComponent = (_, {
|
|
1265
|
-
* <button onClick={clickHandler(
|
|
1381
|
+
* const MyComponent = (_, { event }) => (
|
|
1382
|
+
* <button onClick={clickHandler(event)} />
|
|
1266
1383
|
* );
|
|
1267
1384
|
* ```
|
|
1268
1385
|
*/ onMouseOver?: any;
|
|
1269
1386
|
/**
|
|
1270
|
-
* Wallace
|
|
1387
|
+
* ## Wallace event handler
|
|
1388
|
+
*
|
|
1389
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1271
1390
|
*
|
|
1272
|
-
* Use xargs to access the event or element:
|
|
1273
1391
|
* ```
|
|
1274
|
-
* const MyComponent = (_, {
|
|
1275
|
-
* <button onClick={clickHandler(
|
|
1392
|
+
* const MyComponent = (_, { event }) => (
|
|
1393
|
+
* <button onClick={clickHandler(event)} />
|
|
1276
1394
|
* );
|
|
1277
1395
|
* ```
|
|
1278
1396
|
*/ onMouseUp?: any;
|
|
1279
1397
|
/**
|
|
1280
|
-
* Wallace
|
|
1398
|
+
* ## Wallace event handler
|
|
1399
|
+
*
|
|
1400
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1281
1401
|
*
|
|
1282
|
-
* Use xargs to access the event or element:
|
|
1283
1402
|
* ```
|
|
1284
|
-
* const MyComponent = (_, {
|
|
1285
|
-
* <button onClick={clickHandler(
|
|
1403
|
+
* const MyComponent = (_, { event }) => (
|
|
1404
|
+
* <button onClick={clickHandler(event)} />
|
|
1286
1405
|
* );
|
|
1287
1406
|
* ```
|
|
1288
1407
|
*/ onPaste?: any;
|
|
1289
1408
|
/**
|
|
1290
|
-
* Wallace
|
|
1409
|
+
* ## Wallace event handler
|
|
1410
|
+
*
|
|
1411
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1291
1412
|
*
|
|
1292
|
-
* Use xargs to access the event or element:
|
|
1293
1413
|
* ```
|
|
1294
|
-
* const MyComponent = (_, {
|
|
1295
|
-
* <button onClick={clickHandler(
|
|
1414
|
+
* const MyComponent = (_, { event }) => (
|
|
1415
|
+
* <button onClick={clickHandler(event)} />
|
|
1296
1416
|
* );
|
|
1297
1417
|
* ```
|
|
1298
1418
|
*/ onPause?: any;
|
|
1299
1419
|
/**
|
|
1300
|
-
* Wallace
|
|
1420
|
+
* ## Wallace event handler
|
|
1421
|
+
*
|
|
1422
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1301
1423
|
*
|
|
1302
|
-
* Use xargs to access the event or element:
|
|
1303
1424
|
* ```
|
|
1304
|
-
* const MyComponent = (_, {
|
|
1305
|
-
* <button onClick={clickHandler(
|
|
1425
|
+
* const MyComponent = (_, { event }) => (
|
|
1426
|
+
* <button onClick={clickHandler(event)} />
|
|
1306
1427
|
* );
|
|
1307
1428
|
* ```
|
|
1308
1429
|
*/ onPlay?: any;
|
|
1309
1430
|
/**
|
|
1310
|
-
* Wallace
|
|
1431
|
+
* ## Wallace event handler
|
|
1432
|
+
*
|
|
1433
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1311
1434
|
*
|
|
1312
|
-
* Use xargs to access the event or element:
|
|
1313
1435
|
* ```
|
|
1314
|
-
* const MyComponent = (_, {
|
|
1315
|
-
* <button onClick={clickHandler(
|
|
1436
|
+
* const MyComponent = (_, { event }) => (
|
|
1437
|
+
* <button onClick={clickHandler(event)} />
|
|
1316
1438
|
* );
|
|
1317
1439
|
* ```
|
|
1318
1440
|
*/ onPlaying?: any;
|
|
1319
1441
|
/**
|
|
1320
|
-
* Wallace
|
|
1442
|
+
* ## Wallace event handler
|
|
1443
|
+
*
|
|
1444
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1321
1445
|
*
|
|
1322
|
-
* Use xargs to access the event or element:
|
|
1323
1446
|
* ```
|
|
1324
|
-
* const MyComponent = (_, {
|
|
1325
|
-
* <button onClick={clickHandler(
|
|
1447
|
+
* const MyComponent = (_, { event }) => (
|
|
1448
|
+
* <button onClick={clickHandler(event)} />
|
|
1326
1449
|
* );
|
|
1327
1450
|
* ```
|
|
1328
1451
|
*/ onPointerCancel?: any;
|
|
1329
1452
|
/**
|
|
1330
|
-
* Wallace
|
|
1453
|
+
* ## Wallace event handler
|
|
1454
|
+
*
|
|
1455
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1331
1456
|
*
|
|
1332
|
-
* Use xargs to access the event or element:
|
|
1333
1457
|
* ```
|
|
1334
|
-
* const MyComponent = (_, {
|
|
1335
|
-
* <button onClick={clickHandler(
|
|
1458
|
+
* const MyComponent = (_, { event }) => (
|
|
1459
|
+
* <button onClick={clickHandler(event)} />
|
|
1336
1460
|
* );
|
|
1337
1461
|
* ```
|
|
1338
1462
|
*/ onPointerDown?: any;
|
|
1339
1463
|
/**
|
|
1340
|
-
* Wallace
|
|
1464
|
+
* ## Wallace event handler
|
|
1465
|
+
*
|
|
1466
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1341
1467
|
*
|
|
1342
|
-
* Use xargs to access the event or element:
|
|
1343
1468
|
* ```
|
|
1344
|
-
* const MyComponent = (_, {
|
|
1345
|
-
* <button onClick={clickHandler(
|
|
1469
|
+
* const MyComponent = (_, { event }) => (
|
|
1470
|
+
* <button onClick={clickHandler(event)} />
|
|
1346
1471
|
* );
|
|
1347
1472
|
* ```
|
|
1348
1473
|
*/ onPointerEnter?: any;
|
|
1349
1474
|
/**
|
|
1350
|
-
* Wallace
|
|
1475
|
+
* ## Wallace event handler
|
|
1476
|
+
*
|
|
1477
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1351
1478
|
*
|
|
1352
|
-
* Use xargs to access the event or element:
|
|
1353
1479
|
* ```
|
|
1354
|
-
* const MyComponent = (_, {
|
|
1355
|
-
* <button onClick={clickHandler(
|
|
1480
|
+
* const MyComponent = (_, { event }) => (
|
|
1481
|
+
* <button onClick={clickHandler(event)} />
|
|
1356
1482
|
* );
|
|
1357
1483
|
* ```
|
|
1358
1484
|
*/ onPointerLeave?: any;
|
|
1359
1485
|
/**
|
|
1360
|
-
* Wallace
|
|
1486
|
+
* ## Wallace event handler
|
|
1487
|
+
*
|
|
1488
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1361
1489
|
*
|
|
1362
|
-
* Use xargs to access the event or element:
|
|
1363
1490
|
* ```
|
|
1364
|
-
* const MyComponent = (_, {
|
|
1365
|
-
* <button onClick={clickHandler(
|
|
1491
|
+
* const MyComponent = (_, { event }) => (
|
|
1492
|
+
* <button onClick={clickHandler(event)} />
|
|
1366
1493
|
* );
|
|
1367
1494
|
* ```
|
|
1368
1495
|
*/ onPointerMove?: any;
|
|
1369
1496
|
/**
|
|
1370
|
-
* Wallace
|
|
1497
|
+
* ## Wallace event handler
|
|
1498
|
+
*
|
|
1499
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1371
1500
|
*
|
|
1372
|
-
* Use xargs to access the event or element:
|
|
1373
1501
|
* ```
|
|
1374
|
-
* const MyComponent = (_, {
|
|
1375
|
-
* <button onClick={clickHandler(
|
|
1502
|
+
* const MyComponent = (_, { event }) => (
|
|
1503
|
+
* <button onClick={clickHandler(event)} />
|
|
1376
1504
|
* );
|
|
1377
1505
|
* ```
|
|
1378
1506
|
*/ onPointerOut?: any;
|
|
1379
1507
|
/**
|
|
1380
|
-
* Wallace
|
|
1508
|
+
* ## Wallace event handler
|
|
1509
|
+
*
|
|
1510
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1381
1511
|
*
|
|
1382
|
-
* Use xargs to access the event or element:
|
|
1383
1512
|
* ```
|
|
1384
|
-
* const MyComponent = (_, {
|
|
1385
|
-
* <button onClick={clickHandler(
|
|
1513
|
+
* const MyComponent = (_, { event }) => (
|
|
1514
|
+
* <button onClick={clickHandler(event)} />
|
|
1386
1515
|
* );
|
|
1387
1516
|
* ```
|
|
1388
1517
|
*/ onPointerOver?: any;
|
|
1389
1518
|
/**
|
|
1390
|
-
* Wallace
|
|
1519
|
+
* ## Wallace event handler
|
|
1520
|
+
*
|
|
1521
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1391
1522
|
*
|
|
1392
|
-
* Use xargs to access the event or element:
|
|
1393
1523
|
* ```
|
|
1394
|
-
* const MyComponent = (_, {
|
|
1395
|
-
* <button onClick={clickHandler(
|
|
1524
|
+
* const MyComponent = (_, { event }) => (
|
|
1525
|
+
* <button onClick={clickHandler(event)} />
|
|
1396
1526
|
* );
|
|
1397
1527
|
* ```
|
|
1398
1528
|
*/ onPointerUp?: any;
|
|
1399
1529
|
/**
|
|
1400
|
-
* Wallace
|
|
1530
|
+
* ## Wallace event handler
|
|
1531
|
+
*
|
|
1532
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1401
1533
|
*
|
|
1402
|
-
* Use xargs to access the event or element:
|
|
1403
1534
|
* ```
|
|
1404
|
-
* const MyComponent = (_, {
|
|
1405
|
-
* <button onClick={clickHandler(
|
|
1535
|
+
* const MyComponent = (_, { event }) => (
|
|
1536
|
+
* <button onClick={clickHandler(event)} />
|
|
1406
1537
|
* );
|
|
1407
1538
|
* ```
|
|
1408
1539
|
*/ onProgress?: any;
|
|
1409
1540
|
/**
|
|
1410
|
-
* Wallace
|
|
1541
|
+
* ## Wallace event handler
|
|
1542
|
+
*
|
|
1543
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1411
1544
|
*
|
|
1412
|
-
* Use xargs to access the event or element:
|
|
1413
1545
|
* ```
|
|
1414
|
-
* const MyComponent = (_, {
|
|
1415
|
-
* <button onClick={clickHandler(
|
|
1546
|
+
* const MyComponent = (_, { event }) => (
|
|
1547
|
+
* <button onClick={clickHandler(event)} />
|
|
1416
1548
|
* );
|
|
1417
1549
|
* ```
|
|
1418
1550
|
*/ onRateChange?: any;
|
|
1419
1551
|
/**
|
|
1420
|
-
* Wallace
|
|
1552
|
+
* ## Wallace event handler
|
|
1553
|
+
*
|
|
1554
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1421
1555
|
*
|
|
1422
|
-
* Use xargs to access the event or element:
|
|
1423
1556
|
* ```
|
|
1424
|
-
* const MyComponent = (_, {
|
|
1425
|
-
* <button onClick={clickHandler(
|
|
1557
|
+
* const MyComponent = (_, { event }) => (
|
|
1558
|
+
* <button onClick={clickHandler(event)} />
|
|
1426
1559
|
* );
|
|
1427
1560
|
* ```
|
|
1428
1561
|
*/ onReset?: any;
|
|
1429
1562
|
/**
|
|
1430
|
-
* Wallace
|
|
1563
|
+
* ## Wallace event handler
|
|
1564
|
+
*
|
|
1565
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1431
1566
|
*
|
|
1432
|
-
* Use xargs to access the event or element:
|
|
1433
1567
|
* ```
|
|
1434
|
-
* const MyComponent = (_, {
|
|
1435
|
-
* <button onClick={clickHandler(
|
|
1568
|
+
* const MyComponent = (_, { event }) => (
|
|
1569
|
+
* <button onClick={clickHandler(event)} />
|
|
1436
1570
|
* );
|
|
1437
1571
|
* ```
|
|
1438
1572
|
*/ onResize?: any;
|
|
1439
1573
|
/**
|
|
1440
|
-
* Wallace
|
|
1574
|
+
* ## Wallace event handler
|
|
1575
|
+
*
|
|
1576
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1441
1577
|
*
|
|
1442
|
-
* Use xargs to access the event or element:
|
|
1443
1578
|
* ```
|
|
1444
|
-
* const MyComponent = (_, {
|
|
1445
|
-
* <button onClick={clickHandler(
|
|
1579
|
+
* const MyComponent = (_, { event }) => (
|
|
1580
|
+
* <button onClick={clickHandler(event)} />
|
|
1446
1581
|
* );
|
|
1447
1582
|
* ```
|
|
1448
1583
|
*/ onScroll?: any;
|
|
1449
1584
|
/**
|
|
1450
|
-
* Wallace
|
|
1585
|
+
* ## Wallace event handler
|
|
1586
|
+
*
|
|
1587
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1451
1588
|
*
|
|
1452
|
-
* Use xargs to access the event or element:
|
|
1453
1589
|
* ```
|
|
1454
|
-
* const MyComponent = (_, {
|
|
1455
|
-
* <button onClick={clickHandler(
|
|
1590
|
+
* const MyComponent = (_, { event }) => (
|
|
1591
|
+
* <button onClick={clickHandler(event)} />
|
|
1456
1592
|
* );
|
|
1457
1593
|
* ```
|
|
1458
1594
|
*/ onSecurityPolicyViolation?: any;
|
|
1459
1595
|
/**
|
|
1460
|
-
* Wallace
|
|
1596
|
+
* ## Wallace event handler
|
|
1597
|
+
*
|
|
1598
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1461
1599
|
*
|
|
1462
|
-
* Use xargs to access the event or element:
|
|
1463
1600
|
* ```
|
|
1464
|
-
* const MyComponent = (_, {
|
|
1465
|
-
* <button onClick={clickHandler(
|
|
1601
|
+
* const MyComponent = (_, { event }) => (
|
|
1602
|
+
* <button onClick={clickHandler(event)} />
|
|
1466
1603
|
* );
|
|
1467
1604
|
* ```
|
|
1468
1605
|
*/ onSeeked?: any;
|
|
1469
1606
|
/**
|
|
1470
|
-
* Wallace
|
|
1607
|
+
* ## Wallace event handler
|
|
1608
|
+
*
|
|
1609
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1471
1610
|
*
|
|
1472
|
-
* Use xargs to access the event or element:
|
|
1473
1611
|
* ```
|
|
1474
|
-
* const MyComponent = (_, {
|
|
1475
|
-
* <button onClick={clickHandler(
|
|
1612
|
+
* const MyComponent = (_, { event }) => (
|
|
1613
|
+
* <button onClick={clickHandler(event)} />
|
|
1476
1614
|
* );
|
|
1477
1615
|
* ```
|
|
1478
1616
|
*/ onSeeking?: any;
|
|
1479
1617
|
/**
|
|
1480
|
-
* Wallace
|
|
1618
|
+
* ## Wallace event handler
|
|
1619
|
+
*
|
|
1620
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1481
1621
|
*
|
|
1482
|
-
* Use xargs to access the event or element:
|
|
1483
1622
|
* ```
|
|
1484
|
-
* const MyComponent = (_, {
|
|
1485
|
-
* <button onClick={clickHandler(
|
|
1623
|
+
* const MyComponent = (_, { event }) => (
|
|
1624
|
+
* <button onClick={clickHandler(event)} />
|
|
1486
1625
|
* );
|
|
1487
1626
|
* ```
|
|
1488
1627
|
*/ onSelect?: any;
|
|
1489
1628
|
/**
|
|
1490
|
-
* Wallace
|
|
1629
|
+
* ## Wallace event handler
|
|
1630
|
+
*
|
|
1631
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1491
1632
|
*
|
|
1492
|
-
* Use xargs to access the event or element:
|
|
1493
1633
|
* ```
|
|
1494
|
-
* const MyComponent = (_, {
|
|
1495
|
-
* <button onClick={clickHandler(
|
|
1634
|
+
* const MyComponent = (_, { event }) => (
|
|
1635
|
+
* <button onClick={clickHandler(event)} />
|
|
1496
1636
|
* );
|
|
1497
1637
|
* ```
|
|
1498
1638
|
*/ onSlotChange?: any;
|
|
1499
1639
|
/**
|
|
1500
|
-
* Wallace
|
|
1640
|
+
* ## Wallace event handler
|
|
1641
|
+
*
|
|
1642
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1501
1643
|
*
|
|
1502
|
-
* Use xargs to access the event or element:
|
|
1503
1644
|
* ```
|
|
1504
|
-
* const MyComponent = (_, {
|
|
1505
|
-
* <button onClick={clickHandler(
|
|
1645
|
+
* const MyComponent = (_, { event }) => (
|
|
1646
|
+
* <button onClick={clickHandler(event)} />
|
|
1506
1647
|
* );
|
|
1507
1648
|
* ```
|
|
1508
1649
|
*/ onStalled?: any;
|
|
1509
1650
|
/**
|
|
1510
|
-
* Wallace
|
|
1651
|
+
* ## Wallace event handler
|
|
1652
|
+
*
|
|
1653
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1511
1654
|
*
|
|
1512
|
-
* Use xargs to access the event or element:
|
|
1513
1655
|
* ```
|
|
1514
|
-
* const MyComponent = (_, {
|
|
1515
|
-
* <button onClick={clickHandler(
|
|
1656
|
+
* const MyComponent = (_, { event }) => (
|
|
1657
|
+
* <button onClick={clickHandler(event)} />
|
|
1516
1658
|
* );
|
|
1517
1659
|
* ```
|
|
1518
1660
|
*/ onSubmit?: any;
|
|
1519
1661
|
/**
|
|
1520
|
-
* Wallace
|
|
1662
|
+
* ## Wallace event handler
|
|
1663
|
+
*
|
|
1664
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1521
1665
|
*
|
|
1522
|
-
* Use xargs to access the event or element:
|
|
1523
1666
|
* ```
|
|
1524
|
-
* const MyComponent = (_, {
|
|
1525
|
-
* <button onClick={clickHandler(
|
|
1667
|
+
* const MyComponent = (_, { event }) => (
|
|
1668
|
+
* <button onClick={clickHandler(event)} />
|
|
1526
1669
|
* );
|
|
1527
1670
|
* ```
|
|
1528
1671
|
*/ onSuspend?: any;
|
|
1529
1672
|
/**
|
|
1530
|
-
* Wallace
|
|
1673
|
+
* ## Wallace event handler
|
|
1674
|
+
*
|
|
1675
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1531
1676
|
*
|
|
1532
|
-
* Use xargs to access the event or element:
|
|
1533
1677
|
* ```
|
|
1534
|
-
* const MyComponent = (_, {
|
|
1535
|
-
* <button onClick={clickHandler(
|
|
1678
|
+
* const MyComponent = (_, { event }) => (
|
|
1679
|
+
* <button onClick={clickHandler(event)} />
|
|
1536
1680
|
* );
|
|
1537
1681
|
* ```
|
|
1538
1682
|
*/ onTimeUpdate?: any;
|
|
1539
1683
|
/**
|
|
1540
|
-
* Wallace
|
|
1684
|
+
* ## Wallace event handler
|
|
1685
|
+
*
|
|
1686
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1541
1687
|
*
|
|
1542
|
-
* Use xargs to access the event or element:
|
|
1543
1688
|
* ```
|
|
1544
|
-
* const MyComponent = (_, {
|
|
1545
|
-
* <button onClick={clickHandler(
|
|
1689
|
+
* const MyComponent = (_, { event }) => (
|
|
1690
|
+
* <button onClick={clickHandler(event)} />
|
|
1546
1691
|
* );
|
|
1547
1692
|
* ```
|
|
1548
1693
|
*/ onToggle?: any;
|
|
1549
1694
|
/**
|
|
1550
|
-
* Wallace
|
|
1695
|
+
* ## Wallace event handler
|
|
1696
|
+
*
|
|
1697
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1551
1698
|
*
|
|
1552
|
-
* Use xargs to access the event or element:
|
|
1553
1699
|
* ```
|
|
1554
|
-
* const MyComponent = (_, {
|
|
1555
|
-
* <button onClick={clickHandler(
|
|
1700
|
+
* const MyComponent = (_, { event }) => (
|
|
1701
|
+
* <button onClick={clickHandler(event)} />
|
|
1556
1702
|
* );
|
|
1557
1703
|
* ```
|
|
1558
1704
|
*/ onTouchCancel?: any;
|
|
1559
1705
|
/**
|
|
1560
|
-
* Wallace
|
|
1706
|
+
* ## Wallace event handler
|
|
1707
|
+
*
|
|
1708
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1561
1709
|
*
|
|
1562
|
-
* Use xargs to access the event or element:
|
|
1563
1710
|
* ```
|
|
1564
|
-
* const MyComponent = (_, {
|
|
1565
|
-
* <button onClick={clickHandler(
|
|
1711
|
+
* const MyComponent = (_, { event }) => (
|
|
1712
|
+
* <button onClick={clickHandler(event)} />
|
|
1566
1713
|
* );
|
|
1567
1714
|
* ```
|
|
1568
1715
|
*/ onTouchEnd?: any;
|
|
1569
1716
|
/**
|
|
1570
|
-
* Wallace
|
|
1717
|
+
* ## Wallace event handler
|
|
1718
|
+
*
|
|
1719
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1571
1720
|
*
|
|
1572
|
-
* Use xargs to access the event or element:
|
|
1573
1721
|
* ```
|
|
1574
|
-
* const MyComponent = (_, {
|
|
1575
|
-
* <button onClick={clickHandler(
|
|
1722
|
+
* const MyComponent = (_, { event }) => (
|
|
1723
|
+
* <button onClick={clickHandler(event)} />
|
|
1576
1724
|
* );
|
|
1577
1725
|
* ```
|
|
1578
1726
|
*/ onTouchMove?: any;
|
|
1579
1727
|
/**
|
|
1580
|
-
* Wallace
|
|
1728
|
+
* ## Wallace event handler
|
|
1729
|
+
*
|
|
1730
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1581
1731
|
*
|
|
1582
|
-
* Use xargs to access the event or element:
|
|
1583
1732
|
* ```
|
|
1584
|
-
* const MyComponent = (_, {
|
|
1585
|
-
* <button onClick={clickHandler(
|
|
1733
|
+
* const MyComponent = (_, { event }) => (
|
|
1734
|
+
* <button onClick={clickHandler(event)} />
|
|
1586
1735
|
* );
|
|
1587
1736
|
* ```
|
|
1588
1737
|
*/ onTouchStart?: any;
|
|
1589
1738
|
/**
|
|
1590
|
-
* Wallace
|
|
1739
|
+
* ## Wallace event handler
|
|
1740
|
+
*
|
|
1741
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1591
1742
|
*
|
|
1592
|
-
* Use xargs to access the event or element:
|
|
1593
1743
|
* ```
|
|
1594
|
-
* const MyComponent = (_, {
|
|
1595
|
-
* <button onClick={clickHandler(
|
|
1744
|
+
* const MyComponent = (_, { event }) => (
|
|
1745
|
+
* <button onClick={clickHandler(event)} />
|
|
1596
1746
|
* );
|
|
1597
1747
|
* ```
|
|
1598
1748
|
*/ onTransitionCancel?: any;
|
|
1599
1749
|
/**
|
|
1600
|
-
* Wallace
|
|
1750
|
+
* ## Wallace event handler
|
|
1751
|
+
*
|
|
1752
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1601
1753
|
*
|
|
1602
|
-
* Use xargs to access the event or element:
|
|
1603
1754
|
* ```
|
|
1604
|
-
* const MyComponent = (_, {
|
|
1605
|
-
* <button onClick={clickHandler(
|
|
1755
|
+
* const MyComponent = (_, { event }) => (
|
|
1756
|
+
* <button onClick={clickHandler(event)} />
|
|
1606
1757
|
* );
|
|
1607
1758
|
* ```
|
|
1608
1759
|
*/ onTransitionEnd?: any;
|
|
1609
1760
|
/**
|
|
1610
|
-
* Wallace
|
|
1761
|
+
* ## Wallace event handler
|
|
1762
|
+
*
|
|
1763
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1611
1764
|
*
|
|
1612
|
-
* Use xargs to access the event or element:
|
|
1613
1765
|
* ```
|
|
1614
|
-
* const MyComponent = (_, {
|
|
1615
|
-
* <button onClick={clickHandler(
|
|
1766
|
+
* const MyComponent = (_, { event }) => (
|
|
1767
|
+
* <button onClick={clickHandler(event)} />
|
|
1616
1768
|
* );
|
|
1617
1769
|
* ```
|
|
1618
1770
|
*/ onTransitionRun?: any;
|
|
1619
1771
|
/**
|
|
1620
|
-
* Wallace
|
|
1772
|
+
* ## Wallace event handler
|
|
1773
|
+
*
|
|
1774
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1621
1775
|
*
|
|
1622
|
-
* Use xargs to access the event or element:
|
|
1623
1776
|
* ```
|
|
1624
|
-
* const MyComponent = (_, {
|
|
1625
|
-
* <button onClick={clickHandler(
|
|
1777
|
+
* const MyComponent = (_, { event }) => (
|
|
1778
|
+
* <button onClick={clickHandler(event)} />
|
|
1626
1779
|
* );
|
|
1627
1780
|
* ```
|
|
1628
1781
|
*/ onTransitionStart?: any;
|
|
1629
1782
|
/**
|
|
1630
|
-
* Wallace
|
|
1783
|
+
* ## Wallace event handler
|
|
1784
|
+
*
|
|
1785
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1631
1786
|
*
|
|
1632
|
-
* Use xargs to access the event or element:
|
|
1633
1787
|
* ```
|
|
1634
|
-
* const MyComponent = (_, {
|
|
1635
|
-
* <button onClick={clickHandler(
|
|
1788
|
+
* const MyComponent = (_, { event }) => (
|
|
1789
|
+
* <button onClick={clickHandler(event)} />
|
|
1636
1790
|
* );
|
|
1637
1791
|
* ```
|
|
1638
1792
|
*/ onVolumeChange?: any;
|
|
1639
1793
|
/**
|
|
1640
|
-
* Wallace
|
|
1794
|
+
* ## Wallace event handler
|
|
1795
|
+
*
|
|
1796
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1641
1797
|
*
|
|
1642
|
-
* Use xargs to access the event or element:
|
|
1643
1798
|
* ```
|
|
1644
|
-
* const MyComponent = (_, {
|
|
1645
|
-
* <button onClick={clickHandler(
|
|
1799
|
+
* const MyComponent = (_, { event }) => (
|
|
1800
|
+
* <button onClick={clickHandler(event)} />
|
|
1646
1801
|
* );
|
|
1647
1802
|
* ```
|
|
1648
1803
|
*/ onWaiting?: any;
|
|
1649
1804
|
/**
|
|
1650
|
-
* Wallace
|
|
1805
|
+
* ## Wallace event handler
|
|
1806
|
+
*
|
|
1807
|
+
* Note the code is copied. Use xargs to access the event:
|
|
1651
1808
|
*
|
|
1652
|
-
* Use xargs to access the event or element:
|
|
1653
1809
|
* ```
|
|
1654
|
-
* const MyComponent = (_, {
|
|
1655
|
-
* <button onClick={clickHandler(
|
|
1810
|
+
* const MyComponent = (_, { event }) => (
|
|
1811
|
+
* <button onClick={clickHandler(event)} />
|
|
1656
1812
|
* );
|
|
1657
1813
|
* ```
|
|
1658
1814
|
*/ onWheel?: any;
|