Private
#m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Protected
m_Static
modal_return the DOM associated with the Component (if any)
return the dialog form
change the dialog title
Protected
_disposeProtected
_setadd an application shortcut
key sequence Shift+Ctrl+Alt+K
callback to call
add a new child to the component content
define a set of default handlers in one call
emit an event you can stop propagation of event or prevent default
Optional
event: DialogBoxEventMap[K]event data
compute the element style
Optional
pseudoElt: stringall styles computed
define a set of listeners in one call
Rest
...elements: N[]stop listening to an event
callback to remove (must be the same as in on )
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 dialog buttons
change the dialog content
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: booleansignal en event signaled event are notification : no way to prevent default not stop propagation
event data
Static
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( );
}
} );
Static
showdisplay a messagebox
Optional
inputCallback: ((input) => void)Generated using TypeDoc
Standard dialog class