new tart.components.Widget()
Base widget
Methods
-
getId(){Number}
-
Get component id
Returns:
Type Description Number component id. -
getPlaceholder(){string}
-
Get placeholder template
Returns:
Type Description string placeholder markup. -
render(rootEl)
-
Renders the component in a given element or in its placeholder that should already be in the DOM.
Name Type Description rootEl
Element optional If provided, the widget will render into this rootEl. Otherwise, it will look for its placeholder in DOM.
-
templates_placeholder(){string}
-
Component's placeholder template
Returns:
Type Description string placeholder markup.