Abstract Class sap.ui.core.tmpl.HandlebarsTemplateModule: sap/ui/core/tmpl/HandlebarsTemplate
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.Events borrowed from class sap.ui.base.ManagedObject
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.
Methods borrowed from class sap.ui.core.tmpl.Template
Methods borrowed from class sap.ui.base.ManagedObject
addAggregation, addAssociation, applySettings, attachFormatError, attachModelContextChange, attachParseError, attachValidationError, attachValidationSuccess, bindAggregation, bindContext, bindObject, bindProperty, clone, destroy, destroyAggregation, detachFormatError, detachModelContextChange, detachParseError, detachValidationError, detachValidationSuccess, findAggregatedObjects, fireFormatError, fireModelContextChange, fireParseError, fireValidationError, fireValidationSuccess, getAggregation, getAssociation, getBinding, getBindingContext, getBindingInfo, getBindingPath, getEventingParent, getId, getMetadata, getModel, getObjectBinding, getOriginInfo, getParent, getProperty, hasModel, indexOfAggregation, insertAggregation, invalidate, isBound, isInvalidateSuppressed, isTreeBinding, propagateMessages, removeAggregation, removeAllAggregation, removeAllAssociation, removeAssociation, setAggregation, setAssociation, setBindingContext, setModel, setProperty, toString, unbindAggregation, unbindContext, unbindObject, unbindProperty, validateAggregation, validateProperty
Methods borrowed from class sap.ui.base.EventProvider
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 |