With the exception of global widgets, all widgets require a template file, called display.template
, in the /widget/<widget-type>/templates
directory.
<extension-name> : the root folder of your extension ext.json widget/ <widget-type>/ widget.json templates/ display.template
The template is rendered within the context of the widget and should be written as straight HTML with no surrounding script
tag. All knockout bindings and behavior are available in the HTML template code.
Note: Additional templates are required if you want to fragment your widget into elements. See the Fragment a Widget into Elements chapter for more details.