sap.m.P13nSortPanel.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.P13nSortPanel 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.P13nPanel.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 |
Returns a metadata object for class sap.m.P13nSortPanel.
Returns:
Adds some sortItem to the aggregation sortItems.
Parameters:
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
addSortItem event of this
sap.m.P13nSortPanel.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.P13nSortPanel itself.
event raised when a SortItem was added
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.P13nSortPanel itself |
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
removeSortItem event of this
sap.m.P13nSortPanel.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.P13nSortPanel itself.
remove a sort item
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.P13nSortPanel itself |
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
updateSortItem event of this
sap.m.P13nSortPanel.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.P13nSortPanel itself.
update a sort item
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.P13nSortPanel itself |
- Since:
- 1.26
Returns:
Binds aggregation
sortItems to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.
Parameters:
| {object} | oBindingInfo | The binding information |
- Since:
- 1.26
Returns:
Destroys all the sortItems in the aggregation sortItems.
- Since:
- 1.26
Returns:
Detaches event handler
fnFunction from the
addSortItem event of this
sap.m.P13nSortPanel.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.26
Returns:
Detaches event handler
fnFunction from the
removeSortItem event of this
sap.m.P13nSortPanel.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.26
Returns:
Detaches event handler
fnFunction from the
updateSortItem event of this
sap.m.P13nSortPanel.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.26
Returns:
Fires event addSortItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
Fires event removeSortItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
Fires event updateSortItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
getContainerQuery(): boolean
Gets current value of property
containerQuery.
defines if the mediaQuery or a ContainerResize will be used for layout update. When the ConditionPanel is used on a dialog the property should be set to true!
Default value is false.
- Since:
- 1.26
Returns:
| {boolean} | Value of property containerQuery |
getLayoutMode(): string
Gets current value of property
layoutMode.
can be used to control the layout behavior. Default is "" which will automatically change the layout. With "Desktop", "Table" or"Phone" you can set a fixed layout.
- Since:
- 1.26
Returns:
| {string} | Value of property layoutMode |
Gets content of aggregation
sortItems.
defined Sort Items
- Since:
- 1.26
Returns:
indexOfSortItem(oSortItem): int
Checks for the provided sap.m.P13nSortItem in the aggregation sortItems. and returns its index if found or -1 otherwise.
Parameters:
- Since:
- 1.26
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a sortItem into the aggregation sortItems.
Parameters:
| {sap.m.P13nSortItem} | oSortItem | the sortItem to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the sortItem should be inserted at; for a negative value of iIndex, the sortItem is inserted at position 0; for a value greater than the current size of the aggregation, the sortItem is inserted at the last position |
- Since:
- 1.26
Returns:
Removes all the controls from the aggregation
sortItems.
Additionally, it unregisters them from the hosting UIArea.
- Since:
- 1.26
Returns:
removeInvalidConditions()
removes all invalid sort conditions.
- Since:
- 1.28
Removes a sortItem from the aggregation sortItems.
Parameters:
- Since:
- 1.26
Returns:
removeValidationErrors()
removes all errors/warning states from of all sort conditions.
- Since:
- 1.28
Sets a new value for property
containerQuery.
defines if the mediaQuery or a ContainerResize will be used for layout update. When the ConditionPanel is used on a dialog the property should be set to true!
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
Parameters:
| {boolean} | bContainerQuery | New value for property containerQuery |
- Since:
- 1.26
Returns:
Sets a new value for property
layoutMode.
can be used to control the layout behavior. Default is "" which will automatically change the layout. With "Desktop", "Table" or"Phone" you can set a fixed layout.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sLayoutMode | New value for property layoutMode |
- Since:
- 1.26
Returns:
setOperations(array)
setter for the supported operations array
Parameters:
| {array} | array | of operations [sap.m.P13nConditionOperation.BT, sap.m.P13nConditionOperation.EQ] |
- Since:
- 1.26
Unbinds aggregation sortItems from model data.
- Since:
- 1.26
Returns:
validateConditions()
check if the entered/modified conditions are correct, marks invalid fields yellow (Warning state) and opens a popup message dialog to give the user the feedback that some values are wrong or missing.
- Since:
- 1.26