Private
#m_Protected
m_Protected
m_the checked value
change the checked value
new checked value
return the DOM associated with the Component (if any)
Private
_changeProtected
_disposeProtected
_setadd a new child to the component content
define a set of default handlers in one call
compute the element style
Optional
pseudoElt: stringall styles computed
define a set of listeners in one call
Rest
...elements: N[]listen for an event
callback to call
handle an event one time
callback to call when event is signaled
Promise if callback is null
take care with that because if the event is never fired and you await it, the system may overflow
remove the previous default handler installed for an event
event name
callback handler to remove (must be the same as in setDefaultHandler)
change the component content
new content or null
set the event default handler
name of the event
callback to call when the event is not handled (and preventDeault has not been called)
append a new dom event handler
this.setDomEvent( 'drag drop', this._handleDrag, this );
this.setDomEvent( 'dblclick', this._handleDblClick, this );
Optional
passive: booleanStatic
getStatic
getget a component from a DOM element move up to the hierarchy to find the request class type.
with a DOM like that:
Button
Label
Icon <- the DOM you have (dom-icon)
let btn = Component.getElement( dom-icon, Button );
Optional
classname: string | Constructor<T>Static
getStatic
Protected
releaseStatic
Protected
setcapture mouse events
Component.setCapture( this, ( ev: MouseEvent, initiator: Component ) => {
if( ev.type=='mousemove' ) {
this.setStyle( {
left: ev.clientX,
top: ev.clientY
} );
}
else if( ev.type=='mouseup' ) {
Component.releaseCapture( );
}
} );
Generated using TypeDoc
Standard RadioBtn