Private
#m_Protected
m_Protected
m_Protected
m_Protected
m_return the DOM associated with the Component (if any)
Protected
_disposePrivate
_initProtected
_prepareProtected
_prepareprepare the cardinfo can be used by derivations to create & set selectors
Protected
_setProtected
_updateadd a new child to the component content
compute the element style
all styles computed
Optional
pseudoElt: stringlisten for an event
callback to call
handle an event one time
Promise if callback is null
take care with that because if the event is never fired and you await it, the system may overflow
callback to call when event is signaled
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 );
start a new timer
timer name
time out in ms
if true this is an auto repeat timer
if !null, the callback to call else a EvTimer is fired
Toggle a class from the element (if present remove, if absent add)
```typescript el.toggleClass( 'myclass' ); el.toggleClass( 'myclass1 myclass2'); el.toggleClass( ['myclass1','myclass2']);
classes in string form can be space separated
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( );
}
} );
Generated using TypeDoc
Standard CardView class a card view is composed of multiples pages with only one visible at a time. pages can be selected by a component (like tabs ou sidebar). or by code.