sap.m.P13nColumnsPanel.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.P13nColumnsPanel 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.P13nColumnsPanel.
Returns:
Add ColumnsItem to columnsItems aggregation
Parameters:
- Since:
- 1.26.0
Returns:
Add item to items aggregation
Parameters:
- Since:
- 1.26.0
Returns:
Attaches event handler
fnFunction to the
addColumnsItem event of this
sap.m.P13nColumnsPanel.
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.P13nColumnsPanel itself.
Event raised when a columnsItem is 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.P13nColumnsPanel itself |
- Since:
- 1.26.0
Returns:
Attaches event handler
fnFunction to the
changeColumnsItems event of this
sap.m.P13nColumnsPanel.
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.P13nColumnsPanel itself.
Event raised if columnsItems is changed or new one needs to be created in the model.
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.P13nColumnsPanel itself |
- Since:
- 1.26.7
Returns:
Attaches event handler
fnFunction to the
setData event of this
sap.m.P13nColumnsPanel.
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.P13nColumnsPanel itself.
Event raised if setData is called in model. The event serves the purpose of minimizing such calls since they can take up a lot of performance.
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.P13nColumnsPanel itself |
- Since:
- 1.26.7
Returns:
Binds aggregation
columnsItems 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.0
Returns:
Destroy all instances from columnsItems aggregation
- Since:
- 1.26.0
Returns:
Destroy all items from items aggregation
- Since:
- 1.26.0
Returns:
Detaches event handler
fnFunction from the
addColumnsItem event of this
sap.m.P13nColumnsPanel.
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.0
Returns:
Detaches event handler
fnFunction from the
changeColumnsItems event of this
sap.m.P13nColumnsPanel.
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.7
Returns:
Detaches event handler
fnFunction from the
setData event of this
sap.m.P13nColumnsPanel.
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.7
Returns:
exit()
Cleans up before destruction.
Fires event
addColumnsItem to attached listeners.
Expects the following event parameters:
newItem of type sap.m.P13nColumnsItemcolumnsItem that needs to be added in the model.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26.0
Returns:
Fires event
changeColumnsItems to attached listeners.
Expects the following event parameters:
newItems of type sap.m.P13nColumnsItem[]Contains columnsItems that needs to be created in the model.existingItems of type sap.m.P13nColumnsItem[]Contains columnsItems that needs to be changed in the model.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26.7
Returns:
Fires event setData to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26.7
Returns:
Gets content of aggregation
columnsItems.
List of columns that has been changed.
- Since:
- 1.26.0
Returns:
getOkPayload(): object
Delivers a payload for columnsPanel that can be used at consumer side
- Since:
- 1.26.7
Returns:
| {object} | oPayload, which contains useful information |
getResetPayload(): object
Delivers a payload for columnsPanel that can be used at consumer side
- Since:
- 1.28
Returns:
| {object} | oPayload, which contains useful information |
getVisibleItemsThreshold(): int
Gets current value of property
visibleItemsThreshold.
Specifies a threshold of visible items. If the end user makes a lot of columns visible, this might cause performance to slow down. When this happens, the user can receive a corresponding warning triggered by the visibleItemsThreshold property. The property needs to be activated and set to the required value by the consuming application to ensure that the warning message is shown when the threshold has been exceeded. In the following example the message will be shown if more than 100 visible columns are selected:
customData>
core:CustomData key="p13nDialogSettings"
value='\{"columns":\{"visible": true, "payload": \{"visibleItemsThreshold": 3\}\}\}' />
/customData>
Default value is -1.
- Since:
- 1.26.7
Returns:
| {int} | Value of property visibleItemsThreshold |
indexOfColumnsItem(oColumnsItem): int
Checks for the provided sap.m.P13nColumnsItem in the aggregation columnsItems. and returns its index if found or -1 otherwise.
Parameters:
- Since:
- 1.26.0
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Insert ColumnsItem to columnsItems aggregation
Parameters:
| {int} | iIndex | is the index where the columnsItem item shall be inserted |
| {sap.m.P13nColumnsItem} | oColumnsItem | is the new columnsItem that shall be inserted |
- Since:
- 1.26.0
Returns:
Add item to items aggregation
Parameters:
| {int} | iIndex | is the index where the new item shall be inserted |
| {sap.m.P13nItem} | oItem | is the new item that shall be added |
- Since:
- 1.26.0
Returns:
onBeforeNavigationFrom(): boolean
This method is executed before navigation, to provide validation result(s) for columnsPanel
- Since:
- 1.26.7
Returns:
| {boolean} | true if it is allowed to navigate away from this panel, false if it is not allowed |
reInitialize()
This method does a re-initialization of the panel
- Since:
- 1.28
Remove all ColumnsItems from columnsItems aggregation
- Since:
- 1.26.0
Returns:
Remove all item from items aggregation
- Since:
- 1.26.0
Returns:
Remove ColumnsItem from columnsItems aggregation
Parameters:
- Since:
- 1.26.0
Returns:
Remove item from items aggregation
Parameters:
- Since:
- 1.26.0
Returns:
Sets a new value for property
visibleItemsThreshold.
Specifies a threshold of visible items. If the end user makes a lot of columns visible, this might cause performance to slow down. When this happens, the user can receive a corresponding warning triggered by the visibleItemsThreshold property. The property needs to be activated and set to the required value by the consuming application to ensure that the warning message is shown when the threshold has been exceeded. In the following example the message will be shown if more than 100 visible columns are selected:
customData>
core:CustomData key="p13nDialogSettings"
value='\{"columns":\{"visible": true, "payload": \{"visibleItemsThreshold": 3\}\}\}' />
/customData>
When called with a value of null or undefined, the default value of the property will be restored.
Default value is -1.
Parameters:
| {int} | iVisibleItemsThreshold | New value for property visibleItemsThreshold |
- Since:
- 1.26.7
Returns:
Unbinds aggregation columnsItems from model data.
- Since:
- 1.26.0
Returns: