Class sap.uxap.HierarchicalSelectModule: sap/uxap/HierarchicalSelect

extends Select

A select that display items on 2 level of hierarchy. If a provided item has a custom data named "secondLevel", then it will be displayed as a second level, otherwise it would be displayed as a first level.


Since: 1.26.
Constructor Summary
new sap.uxap.HierarchicalSelect(sId?, mSettings?)Constructor for a new HierarchicalSelect.
Events borrowed from class sap.m.Select
Events borrowed from class sap.ui.core.Control
Method Summary
sap.uxap.HierarchicalSelect.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.uxap.HierarchicalSelect with name sClassName and enriches it with the information contained in oClassInfo.
sap.uxap.HierarchicalSelect.getMetadata()Returns a metadata object for class sap.uxap.HierarchicalSelect.
getUpperCase()Gets current value of property upperCase.
setUpperCase(bUpperCase)Sets a new value for property upperCase.
Constructor Detail
new sap.uxap.HierarchicalSelect(sId?, mSettings?)
Constructor for a new HierarchicalSelect.

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

The supported settings are:

  • Properties

In addition, all settings applicable to the base type sap.m.Select can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Method Detail
sap.uxap.HierarchicalSelect.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.uxap.HierarchicalSelect with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.m.Select.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.uxap.HierarchicalSelect.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.uxap.HierarchicalSelect.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getUpperCase(): boolean
Gets current value of property upperCase.

Determines whether the HierarchicalSelect items are displayed in upper case.

Default value is false.

Returns:
{boolean} Value of property upperCase
setUpperCase(bUpperCase): sap.uxap.HierarchicalSelect
Sets a new value for property upperCase.

Determines whether the HierarchicalSelect items are displayed in upper case.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

Parameters:
{boolean}bUpperCase New value for property upperCase
Returns:
{sap.uxap.HierarchicalSelect} Reference to this in order to allow method chaining