Class sap.m.ViewSettingsItemModule: sap/m/ViewSettingsItem
ViewSettingsItem is used for modelling filter behaviour in the ViewSettingsDialog. It is derived from a core Item, but does not support the base class properties "textDirection" and "enabled", setting these properties will not have any effects. Apps should use the core Item's property key/
and provide a unique value for it. Not providing a key may lead to unexpected behavior of the sap.m.ViewSettingsDialog.
Since: 1.16.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the itemPropertyChanged
event of this sap.m.ViewSettingsItem
.fnFunction
from the itemPropertyChanged
event of this sap.m.ViewSettingsItem
. 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
- selected : boolean (default: false)
- Events
- itemPropertyChanged : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Item can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{sap.m.ViewSettingsItem} | oControlEvent.getParameters.changedItem | Instance of the item that changed. |
{string} | oControlEvent.getParameters.propertyKey | Key of the changed property. |
{mixed} | oControlEvent.getParameters.propertyValue | Value of the changed property. |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Item.extend.
{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 |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the itemPropertyChanged
event of this sap.m.ViewSettingsItem
. 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.ViewSettingsItem
itself.
Let the outside world know that some of its properties has changed.
{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.ViewSettingsItem itself |
{sap.m.ViewSettingsItem} | Reference to this in order to allow method chaining |
fnFunction
from the itemPropertyChanged
event of this sap.m.ViewSettingsItem
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.m.ViewSettingsItem} | Reference to this in order to allow method chaining |
itemPropertyChanged
to attached listeners. Expects the following event parameters:
changedItem
of typesap.m.ViewSettingsItem
Instance of the item that changed.propertyKey
of typestring
Key of the changed property.propertyValue
of typemixed
Value of the changed property.
{Map} | mArguments? | The arguments to pass along with the event |
{sap.m.ViewSettingsItem} | Reference to this in order to allow method chaining |
selected
. Selected state of the item. If set to "true", the item will be displayed as selected in the view settings dialog.
Default value is false
.
{boolean} | Value of property selected |
selected
. Selected state of the item. If set to "true", the item will be displayed as selected in the view settings dialog.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bSelected | New value for property selected |
{sap.m.ViewSettingsItem} | Reference to this in order to allow method chaining |