abstract class sap.ui.core.tmpl.HandlebarsTemplate

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/core/tmpl/HandlebarsTemplate
Application Component: CA-UI5-COR

The class for Handlebars Templates.


Constructor

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.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

This class does not have its own settings, but all settings applicable to the base type sap.ui.core.tmpl.Template can be used.

new sap.ui.core.tmpl.HandlebarsTemplate(sId?, mSettings?)
Param Type Default Value Description
sId? string

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!

mSettings? object

optional map/JSON-object with initial settings for the new component instance

Borrowed Properties

Name Type Default Value Description
content string

The Template definition as a String.

Visibility: public

Methods Overview

Method Description
sap.ui.core.tmpl.HandlebarsTemplate.extend

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.

sap.ui.core.tmpl.HandlebarsTemplate.getMetadata

Returns a metadata object for class sap.ui.core.tmpl.HandlebarsTemplate.

sap.ui.core.tmpl.HandlebarsTemplate.extend

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.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.core.tmpl.HandlebarsTemplate.getMetadata

Returns a metadata object for class sap.ui.core.tmpl.HandlebarsTemplate.