A SortAction is a sap.m.Button control enhanced with styling according to the semantics of a common "Sort" action.
A SortAction cannot be used independently but only as aggregation content of a sap.m.semantic.SemanticPage.
Your app should listen to the press
event of sap.m.semantic.SortAction in order to trigger the display of the sorting options.
If your sorting options are a simple list of items and require single choice only, then you can consider using a sap.m.semantic.SortSelect instead.
Constructor for a new SortAction.
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.SemanticButton can be used.
new sap.m.semantic.SortAction(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 |
Method | Description |
---|---|
sap.m.semantic.SortAction.extend |
Creates a new subclass of class sap.m.semantic.SortAction with name
|
sap.m.semantic.SortAction.getMetadata |
Returns a metadata object for class sap.m.semantic.SortAction. |
Creates a new subclass of class sap.m.semantic.SortAction 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.SemanticButton.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 |