Class sap.ui.comp.filterbar.FilterItemModule: sap/ui/comp/filterbar/FilterItem
Represents a filter belonging to the basic group.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the change
event of this sap.ui.comp.filterbar.FilterItem
.fnFunction
from the change
event of this sap.ui.comp.filterbar.FilterItem
. 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
- label : string
- name : string
- mandatory : boolean (default: false)
- visible : boolean (default: true)
- labelTooltip : string
- partOfCurrentVariant : boolean (default: false)
- visibleInFilterBar : boolean (default: true)
- Aggregations
- control : sap.ui.core.Control
- Events
- change : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Element 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 | |
{string} | oControlEvent.getParameters.propertyName | Name 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.Element.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 change
event of this sap.ui.comp.filterbar.FilterItem
. 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.ui.comp.filterbar.FilterItem
itself.
This event is fired when one of the properties is 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.ui.comp.filterbar.FilterItem itself |
{sap.ui.comp.filterbar.FilterItem} | Reference to this in order to allow method chaining |
control
. {sap.ui.comp.filterbar.FilterItem} | Reference to this in order to allow method chaining |
fnFunction
from the change
event of this sap.ui.comp.filterbar.FilterItem
. 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.ui.comp.filterbar.FilterItem} | Reference to this in order to allow method chaining |
change
to attached listeners. Expects the following event parameters:
propertyName
of typestring
Name of the changed property
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.comp.filterbar.FilterItem} | Reference to this in order to allow method chaining |
control
. The control of the filter.
{sap.ui.core.Control} |
label
. Label of the filter.
{string} | Value of property label |
labelTooltip
. Tooltip for the filter.
{string} | Value of property labelTooltip |
mandatory
. Mandatory flag.
Default value is false
.
{boolean} | Value of property mandatory |
name
. Name of the filter. This is an identifier for the filter and has to be unique.
{string} | Value of property name |
partOfCurrentVariant
. Determines if a filter is part of the currently selected variant. This property is ONLY used internally and must not be used by the filter bar consumers.
Default value is false
.
- Since:
- 1.26.1
{boolean} | Value of property partOfCurrentVariant |
visible
. Visibility state of the filter.
Default value is true
.
{boolean} | Value of property visible |
visibleInFilterBar
. Controls the visibility of a filter item in the filter bar.
Default value is true
.
- Since:
- 1.26.1
{boolean} | Value of property visibleInFilterBar |
control
. {sap.ui.core.Control} | oControl | The control to set |
{sap.ui.comp.filterbar.FilterItem} | Reference to this in order to allow method chaining |
name
. Name of the filter. This is an identifier for the filter and has to be unique.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sName | New value for property name |
{sap.ui.comp.filterbar.FilterItem} | Reference to this in order to allow method chaining |
partOfCurrentVariant
. Determines if a filter is part of the currently selected variant. This property is ONLY used internally and must not be used by the filter bar consumers.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bPartOfCurrentVariant | New value for property partOfCurrentVariant |
- Since:
- 1.26.1
{sap.ui.comp.filterbar.FilterItem} | Reference to this in order to allow method chaining |