Class sap.ui.core.mvc.HTMLViewModule: sap/ui/core/mvc/HTMLView

extends View

A view defined/constructed by declarative HTML.
Since: 1.9.2.
Constructor Summary
new sap.ui.core.mvc.HTMLView(sId?, mSettings?)Constructor for a new mvc/HTMLView.
Field Summary
sap.ui.core.mvc.HTMLView.asyncSupportFlag for feature detection of asynchronous loading/rendering
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.core.mvc.HTMLView.create(mOptions)Creates an instance of a declarative HTML view.
sap.ui.core.mvc.HTMLView.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.core.mvc.HTMLView with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.core.mvc.HTMLView.getMetadata()Returns a metadata object for class sap.ui.core.mvc.HTMLView.
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.core.mvc.HTMLView(sId?, mSettings?)
Constructor for a new mvc/HTMLView.
Parameters:
stringsId?id for the new control, generated automatically if no id is given
objectmSettings?initial settings for the new control
Field Detail
sap.ui.core.mvc.HTMLView.asyncSupport
Flag for feature detection of asynchronous loading/rendering
Since:
1.30
Method Detail
sap.ui.core.mvc.HTMLView.create(mOptions): Promise
Creates an instance of a declarative HTML view.
Parameters:
mapmOptionsA map containig the view configuration options.
stringmOptions.id?Specifies an ID for the View instance. If no ID is given, an ID will be generated.
stringmOptions.viewName?Name of the view resource in module name notation (without suffix)
stringmOptions.definition?The view definition.
sap.ui.core.mvc.ControllermOptions.controller?Controller instance to be used for this view. The given controller instance overrides the controller defined in the view definition. Sharing a controller instance between multiple views is not supported.
Returns:
PromiseA Promise which resolves with the created HTMLView instance
Since:
1.56.0
sap.ui.core.mvc.HTMLView.extend(sClassName, oClassInfo?, FNMetaImpl?): function

Creates a new subclass of class sap.ui.core.mvc.HTMLView 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.mvc.View.extend.

Parameters:
stringsClassNameName of the class being created
objectoClassInfo?Object literal with information about the class
functionFNMetaImpl?Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
functionCreated class / constructor function
sap.ui.core.mvc.HTMLView.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.core.mvc.HTMLView.
Returns:
sap.ui.base.MetadataMetadata object describing this class