A definition of the module:ui/template~Template. It describes what kind of
node a template will render (HTML element or text), attributes of an element, DOM event
listeners and children.
Also see:
module:ui/template~TemplateValueSchema to learn about HTML element attributes,
module:ui/template~TemplateListenerSchema to learn about DOM event listeners.
A sample definition on an HTML element can look like this:
// ... }, on: { 'click': {@link module:ui/template~TemplateListenerSchema}
// Document.querySelector format is also accepted. 'keyup@a.some-class': {@link module:ui/template~TemplateListenerSchema}
// ... } } );
A module:ui/view~View, another module:ui/template~Template or a native DOM node
can also become a child of a template. When a view is passed, its module:ui/view~View#element is used:
A definition of the module:ui/template~Template. It describes what kind of node a template will render (HTML element or text), attributes of an element, DOM event listeners and children.
Also see:
A sample definition on an HTML element can look like this:
A module:ui/view~View, another module:ui/template~Template or a native DOM node can also become a child of a template. When a view is passed, its module:ui/view~View#element is used:
An entire module:ui/viewcollection~ViewCollection can be used as a child in the definition: