TemplateDefinition (ui)
@ckeditor/ckeditor5-ui/src/template
A definition of the 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:
TemplateValueSchema
to learn about HTML element attributes,TemplateListenerSchema
to learn about DOM event listeners.
A sample definition on an HTML element can look like this:
A View
, another Template
or a native DOM node
can also become a child of a template. When a view is passed, its element
is used:
An entire ViewCollection
can be used as a child in the definition:
Filtering
Properties
-
See the template
attributes
property. -
See the template
children
property. -
See the template
eventListeners
property. -
See the template
tag
property. -
See the template
text
property.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.