MCPcopy Index your code
hub / github.com/WebReflection/wicked-elements / IWickedElementsComponent

Interface IWickedElementsComponent

index.d.ts:1–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1interface IWickedElementsComponent {
2 /**
3 * Always triggered once per node => definition, like a `constructor`.
4 * Ideal to setup anything as a one off operation.
5 * `this.element` will point at the node handled by this instance.
6 */
7 init?(): void;
8
9 /**
10 * Triggered once the node is live.
11 */
12 connected?(): void;
13
14 /**
15 * Triggered once the node is lost/removed.
16 */
17 disconnected?(): void;
18
19 /**
20 * Triggered when an attribute in the `observedAttributes` list changes or,
21 * if `observedAttributes` is not defined, for any attribute changes.
22 */
23 attributeChanged?(
24 attributeName: string,
25 newValue: string | null,
26 oldValue: string | null
27 ): void;
28
29 /**
30 * Optionally you can specify one or more attribute to observe.
31 * If empty, or not provided, but `attributeChanged()` method exists,
32 * all attributes changes are notified.
33 */
34 observedAttributes?: Array<string>;
35
36 /**
37 * Any event can be defined as method.
38 * Example: `onClick` or `onCustomEvent`.
39 */
40 onEventName?(event:Event): void;
41
42 /**
43 * Ane event could optionally have `Options` used as third argument,
44 * when the event is added via `addEventListener`: `false` by default.
45 */
46 onEventNameOptions?:boolean | object;
47}
48
49declare const wickedElements: {
50 /**

Callers 13

min.jsFile · 0.80
handleFunction · 0.80
setFunction · 0.80
setFunction · 0.80
setFunction · 0.80
OFunction · 0.80
min.jsFile · 0.80
SFunction · 0.80
handleFunction · 0.80
attributeChangedCallbackFunction · 0.80
setFunction · 0.80
attributeChangedCallbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected