class sap.m.semantic.SortSelect

Control sample: sap.m.semantic.SortSelect
Visiblity: public
UX Guidelines:
Implements: sap.m.semantic.ISort
Available since: N/A
Module: sap/m/semantic/SortSelect
Application Component: CA-UI5-CTR

A SortSelect is a sap.m.Select control enhanced with styling according to the semantics of a common "Sort" acton.

A SortSelect cannot be used independently but only as aggregation content of a sap.m.semantic.SemanticPage.

The sorting options should be added to the items aggregation of sap.m.semantic.SortSelect and will be displayed as a pop-up list with support for single-item selection. If this simple popup list is not sufficient for your use case, you can implement your own custom dialog by using sap.m.semantic.SortAction to trigger the dialog opening.


Constructor

Constructor for a new SortSelect.

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.m.semantic.SemanticSelect can be used.

new sap.m.semantic.SortSelect(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new control, generated automatically if no ID is given

mSettings? object

Optional initial settings for the new control: a map/JSON-object with initial property values, event listeners etc. for the new object

Borrowed Properties

Name Type Default Value Description
enabled boolean true

See sap.m.Select#getEnabled

Visibility: public
selectedKey string empty string

See sap.m.Select#getSelectedKey

Visibility: public
visible boolean true

See sap.ui.core.Control#visible

Visibility: public

Borrowed Aggregations

Name Cardinality Type Description
items 0..n sap.ui.core.Item

See sap.m.Select#getItems


Methods Overview

Method Description
sap.m.semantic.SortSelect.extend

Creates a new subclass of class sap.m.semantic.SortSelect 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.semantic.SemanticSelect.extend.

sap.m.semantic.SortSelect.getMetadata

Returns a metadata object for class sap.m.semantic.SortSelect.

sap.m.semantic.SortSelect.extend

Creates a new subclass of class sap.m.semantic.SortSelect 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.semantic.SemanticSelect.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.m.semantic.SortSelect.getMetadata

Returns a metadata object for class sap.m.semantic.SortSelect.