Abstract Class sap.ui.core.tmpl.HandlebarsTemplateModule: sap/ui/core/tmpl/HandlebarsTemplate

extends Template

The class for Handlebars Templates.

Experimental API:Since 1.15.0. The Template concept is still under construction, so some implementation details can be changed in future.

Constructor Summary
new sap.ui.core.tmpl.HandlebarsTemplate(sId?, mSettings?)Creates and initializes a new handlebars template with the given sId and settings.
Method Summary
sap.ui.core.tmpl.HandlebarsTemplate.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.core.tmpl.HandlebarsTemplate with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.core.tmpl.HandlebarsTemplate.getMetadata()Returns a metadata object for class sap.ui.core.tmpl.HandlebarsTemplate.
Constructor Detail
new sap.ui.core.tmpl.HandlebarsTemplate(sId?, mSettings?)
Creates and initializes a new handlebars template with the given sId and settings.

The set of allowed entries in the mSettings object depends on the concrete subclass and is described there.

Parameters:
{string}sId? optional id for the new template; generated automatically if no non-empty id is given Note: this can be omitted, no matter whether mSettings will be given or not!
{object}mSettings? optional map/JSON-object with initial settings for the new component instance
Method Detail
sap.ui.core.tmpl.HandlebarsTemplate.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.core.tmpl.HandlebarsTemplate with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.tmpl.Template.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.core.tmpl.HandlebarsTemplate.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.core.tmpl.HandlebarsTemplate.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class