Event interface in {eventName: (...args) => void}
format.
To mark the node range of current nodes when created, use for <slot />
.
The root element of component.
Caches referenced elements from :ref="refName"
.
You should redefine the type as {name: HTMLElement, ...}
.
Caches slot elements from :slot="slotName"
.
You should redefine the type as {name: HTMLElement[], ...}
.
This static property contains style text used as styles for current component.
Class names will be scoped as .className__componentName
.
Tag selector will be nested as: p
-> com-name p
.
You can nest css codes just like in SCSS, and use $
to reference parent selector.
Called after connected each time, also after __emitCreated
.
Called after component created and properties assigned.
Called after disconnected each time.
Ensure __watcherGroup
to be initialized.
Called from a global queued stack to do updating.
Set force
to true
to force updating happens even in a document fragment.
Update all watchers binded with current component.
Emit specified event with event name
and parameters.
The event name.
The parameters that will be passed to event listeners.
Check whether listener
is in the list for listening specified event name
.
The event name.
The event listener to check.
The scope binded to listener. If provided, will additionally check whether the scope match.
Check whether any listener
is listening specified event name
.
The event name.
Removes the listener
that is listening specified event name
.
The event name.
The event listener, only matched listener will be removed.
The scope binded to listener. If provided, remove listener only when scope match.
Registers an event listener
to listen event with specified name
.
The event name.
The event listener.
The scope will be binded to listener.
Registers an event listener
to listen event with specified name
, triggers for only once.
The event name.
The event listener.
The scope will be binded to listener.
Removes all the event listeners.
returns scoped class name E .name -> .name__com-name
Call this to partially or fully update inner contents asynchronously. Never overwrite this method until you know what you are doing.
Watchs returned value of fn
and calls callback
with this value as parameter after the value changed.
Will set callback scope as current component.
Watchs returned value of fn
and calls callback
with this value as parameter after the value changed.
Will call callback
immediately.
Will set callback scope as current component.
Watchs returned value of fn
and calls callback
with this value as parameter after the value changed.
Calls callback
for only once.
Will set callback scope as current component.
Watchs returned value of fn
and calls callback
with this value as parameter after the value becomes true like.
Will set callback scope as current component.
Generated using TypeDoc
Super class of all the components, create automacially when element appearance in the document.