Private
#m_Protected
m_return the DOM associated with the Component (if any)
change the button text
let btn = new Button( {
text: 'hello'
});
btn.text = 'world';
Protected
_disposeProtected
_handleProtected
_handleProtected
_sendProtected
_setPrivate
_startadd 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
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
Base button