Class sap.m.FacetFilterListModule: sap/m/FacetFilterList
FacetFilterList represents a list of values for the FacetFilter control.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the listClose
event of this sap.m.FacetFilterList
.fnFunction
to the listOpen
event of this sap.m.FacetFilterList
.fnFunction
from the listClose
event of this sap.m.FacetFilterList
.fnFunction
from the listOpen
event of this sap.m.FacetFilterList
.enableCaseInsensitiveSearch
. 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
- title : string
- wordWrap : boolean (default: false)
- multiSelect : boolean (default: true)
- active : boolean (default: true)
- enableCaseInsensitiveSearch : boolean (default: false)
- allCount : int
- sequence : int (default: -1)
- key : string
- showRemoveFacetIcon : boolean (default: true)
- retainListSequence : boolean (default: false)
- dataType : sap.m.FacetFilterListDataType (default: String)
- Events
In addition, all settings applicable to the base type sap.m.List 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.FacetFilterItem[]} | oControlEvent.getParameters.selectedItems | Array of selected items. Items returned are only copies and therefore can only be used to read properties, not set them. |
{boolean} | oControlEvent.getParameters.allSelected | True if the select All checkbox is selected. This will be false if all items are actually selected (every FacetFilterItem.selected == true). In that case selectedItems will contain all selected items. |
{object} | oControlEvent.getParameters.selectedKeys | Associative array containing the keys of selected FacetFilterItems. Unlike the selectedItems parameter, this contains only the keys for all selected items, not the items themselves. Being an associative array, each object property is the FacetFilterItem key value and the value of the property is the FacetFilterItem text. |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.m.List.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 listClose
event of this sap.m.FacetFilterList
. 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.FacetFilterList
itself.
Triggered after the list of items is closed.
{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.FacetFilterList itself |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
fnFunction
to the listOpen
event of this sap.m.FacetFilterList
. 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.FacetFilterList
itself.
Fired before the filter list is opened.
{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.FacetFilterList itself |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
fnFunction
from the listClose
event of this sap.m.FacetFilterList
. 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.FacetFilterList} | Reference to this in order to allow method chaining |
fnFunction
from the listOpen
event of this sap.m.FacetFilterList
. 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.FacetFilterList} | Reference to this in order to allow method chaining |
listClose
to attached listeners. Expects the following event parameters:
selectedItems
of typesap.m.FacetFilterItem[]
Array of selected items. Items returned are only copies and therefore can only be used to read properties, not set them.allSelected
of typeboolean
True
if the select All checkbox is selected. This will befalse
if all items are actually selected (every FacetFilterItem.selected == true). In that case selectedItems will contain all selected items.selectedKeys
of typeobject
Associative array containing the keys of selected FacetFilterItems. Unlike the selectedItems parameter, this contains only the keys for all selected items, not the items themselves. Being an associative array, each object property is the FacetFilterItem key value and the value of the property is the FacetFilterItem text.
{Map} | mArguments? | The arguments to pass along with the event |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
listOpen
to attached listeners. {Map} | mArguments? | The arguments to pass along with the event |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
active
. Indicates that the list is displayed as a button when the FacetFilter type is set to Simple
.
Default value is true
.
{boolean} | Value of property active |
allCount
. Determines the number of objects that match this item in the target data set when all filter items are selected.
{int} | Value of property allCount |
dataType
. FacetFilterList data type. Only String data type will provide search function.
Default value is String
.
{sap.m.FacetFilterListDataType} | Value of property dataType |
enableCaseInsensitiveSearch
. If set to true
, enables case-insensitive search for OData.
Default value is false
.
{boolean} | Value of property enableCaseInsensitiveSearch |
key
. Unique identifier for this filter list.
{string} | Value of property key |
retainListSequence
. Retains the list sequence if it is inactive and made active again.
Default value is false
.
- Since:
- 1.22.1
{boolean} | Value of property retainListSequence |
- Since:
- 1.20.3
{object} | Object with the selected keys |
sequence
. Sequence that determines the order in which FacetFilterList is shown on the FacetFilter. Lists are rendered by ascending order of sequence.
Default value is -1
.
{int} | Value of property sequence |
showRemoveFacetIcon
. Specifies whether remove icon for facet is visible or hidden.
Default value is true
.
- Since:
- 1.20.4
{boolean} | Value of property showRemoveFacetIcon |
title
. Defines the title of the facet. The facet title is displayed on the facet button when the FacetFilter type is set to Simple
. It is also displayed as a list item in the facet page of the dialog.
{string} | Value of property title |
wordWrap
. If set to true
, the item text wraps when it is too long.
Default value is false
.
{boolean} | Value of property wordWrap |
{string} | sKey | The key of the selected item to be removed from the cache. If null then the text parameter will be used as the key. |
{string} | sText | The text of the selected item to be removed from the cache. If the key parameter is null then text will be used as the key. |
- Since:
- 1.20.4
- Since:
- 1.20.4
active
. Indicates that the list is displayed as a button when the FacetFilter type is set to Simple
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bActive | New value for property active |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
allCount
. Determines the number of objects that match this item in the target data set when all filter items are selected.
When called with a value of null
or undefined
, the default value of the property will be restored.
{int} | iAllCount | New value for property allCount |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
dataType
. FacetFilterList data type. Only String data type will provide search function.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is String
.
{sap.m.FacetFilterListDataType} | sDataType | New value for property dataType |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
enableCaseInsensitiveSearch
. If set to true
, enables case-insensitive search for OData.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bEnableCaseInsensitiveSearch | New value for property enableCaseInsensitiveSearch |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
key
. Unique identifier for this filter list.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sKey | New value for property key |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
{sap.m.ListMode} | mode | The list mode |
retainListSequence
. Retains the list sequence if it is inactive and made active again.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bRetainListSequence | New value for property retainListSequence |
- Since:
- 1.22.1
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
undefined
, null
, or {} (empty object) then all keys are deleted. After this method completes, only those items with matching keys will be selected. All other items in the list will be deselected. {object} | oAKeys | Associative array indicating which FacetFilterItems should be selected in the list. Each property must be set to the value of a FacetFilterItem.key property. Each property value should be set to the FacetFilterItem.text property value. The text value is used to display the FacetFilterItem text when the FacetFilterList button or FacetFilter summary bar is displayed. If no property value is set then the property key is used for the text. |
- Since:
- 1.20.3
sequence
. Sequence that determines the order in which FacetFilterList is shown on the FacetFilter. Lists are rendered by ascending order of sequence.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is -1
.
{int} | iSequence | New value for property sequence |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
showRemoveFacetIcon
. Specifies whether remove icon for facet is visible or hidden.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowRemoveFacetIcon | New value for property showRemoveFacetIcon |
- Since:
- 1.20.4
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
wordWrap
. If set to true
, the item text wraps when it is too long.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bWordWrap | New value for property wordWrap |
{sap.m.FacetFilterList} | Reference to this in order to allow method chaining |
multiSelect
. Specifies whether multiple or single selection is used.
Default value is true
.
- Deprecated:
- Since version 1.20.0. This property is no longer supported. Use the setMode method instead. FacetFilterList overrides the setMode method to restrict the possible modes to MultiSelect and SingleSelectMaster. All other modes are ignored and will not be set.
{boolean} | Value of property multiSelect |