sap.ui.comp.filterbar.FilterBar.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.filterbar.FilterBar with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.layout.Grid.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.ui.comp.filterbar.FilterBar.
Returns:
_getFilterInformation(): array
Provides filter information for lazy instantiation
Returns:
{array} | of filter information |
addFilterGroupItem(oFilterGroupItem)
Adds a FilterGroupItem
element to the aggregation filterGroupItems
.
Parameters:
addFilterItem(oFilterItem)
Adds a FilterItem
element to the aggregation filterItems
.
Parameters:
applyVariant(oVariant, sContext, bInitial)
Parameters:
{object} | oVariant | JSON object |
{string} | sContext | Describes in which context the variant is applied. The context is passed on to the application via the afterVariantLoad event |
{boolean} | bInitial | indicates if the apply was executed during the initialization phase. |
Attaches event handler
fnFunction
to the
afterVariantLoad
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired after a variant has been loaded and applied to the FilterBar. The event can be used to adapt custom filters with data from the variant.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
afterVariantSave
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired after a variant has been saved. ID of the saved variant.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
assignedFiltersChanged
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired when the filters information has changed. It indicates specifically that the count of assigned filters may be changed. One of the intended reaction to this event would be to call retrieveFiltersWithValuesAsText
method.
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.ui.comp.filterbar.FilterBar itself |
- Since:
- 1.38.0
Returns:
Attaches event handler
fnFunction
to the
beforeVariantFetch
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired before a variant is fetched.
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.ui.comp.filterbar.FilterBar itself |
- Since:
- 1.28.13
Returns:
Attaches event handler
fnFunction
to the
beforeVariantSave
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired before a variant is saved. The event can be used to adapt the data of the custom filters, which will be saved as variant later.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
cancel
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired when the Cancel button on the Filters dialog is pressed and the variant is marked as dirty.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
clear
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired when the Clear button is pressed. The consumer has to clear all filters.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
filterChange
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired when a filter has changed.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
filtersDialogClosed
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired after the filters dialog is closed.
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.ui.comp.filterbar.FilterBar itself |
- Since:
- 1.34.0
Returns:
Attaches event handler
fnFunction
to the
initialise
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired when the filter bar is initialized.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
initialized
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired after the filter bar was initialized and the standard variant was obtained. Eventual navigation related actions should be triggered by this event.
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.ui.comp.filterbar.FilterBar itself |
- Since:
- 1.38.0
Returns:
Attaches event handler
fnFunction
to the
reset
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired when the Restore button is pressed.
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.ui.comp.filterbar.FilterBar itself |
Returns:
Attaches event handler
fnFunction
to the
search
event of this
sap.ui.comp.filterbar.FilterBar
.
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.FilterBar
itself.
This event is fired when the Go button is pressed.
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.ui.comp.filterbar.FilterBar itself |
Returns:
clearVariantSelection()
Resets the current selection in the variant management control to standard.
destroy()
Destroys the control.
Destroys all the filterGroupItems in the aggregation filterGroupItems
.
Returns:
Destroys all the filterItems in the aggregation filterItems
.
Returns:
Detaches event handler
fnFunction
from the
afterVariantLoad
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
afterVariantSave
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
assignedFiltersChanged
event of this
sap.ui.comp.filterbar.FilterBar
.
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.38.0
Returns:
Detaches event handler
fnFunction
from the
beforeVariantFetch
event of this
sap.ui.comp.filterbar.FilterBar
.
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.28.13
Returns:
Detaches event handler
fnFunction
from the
beforeVariantSave
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
cancel
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
clear
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
filterChange
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
filtersDialogClosed
event of this
sap.ui.comp.filterbar.FilterBar
.
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.34.0
Returns:
Detaches event handler
fnFunction
from the
initialise
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
initialized
event of this
sap.ui.comp.filterbar.FilterBar
.
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.38.0
Returns:
Detaches event handler
fnFunction
from the
reset
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Detaches event handler
fnFunction
from the
search
event of this
sap.ui.comp.filterbar.FilterBar
.
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 |
Returns:
Retrieves the control associated to the filter.
Parameters:
Returns:
Retrieves the control based on the name and group name.
Parameters:
{string} | sName | Name of the filter. |
{string} | sGroupName | Group name of the filter; null for filter that belongs to basic group. |
Returns:
determineMandatoryFilterItems(): array
Retrieves the mandatory filters.
Returns:
{array} | Of visible mandatory filters |
fetchVariant(bConsiderInvisibleFilters): object
Creates and returns the variant representation. This method is executed from the SmartVariantManagement control.
Parameters:
{boolean} | bConsiderInvisibleFilters | Indicates if invisible filters should be considered |
Returns:
Fires event afterVariantSave
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
fireAssignedFiltersChanged()
Notifies about a filter change. Is the indicator that the text of filters with values may be changed.
Fires event beforeVariantFetch
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.13
Returns:
Fires event cancel
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
clear
to attached listeners.
Expects the following event parameters:
selectionSet
of type sap.ui.core.Control[]
Visible controls
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event filtersDialogClosed
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.34.0
Returns:
fireInitialise()
This method has to be called by the consumer to indicate that the data model is available.
fireInitialized()
This method will be called by the smart variant mangement and it indicates, that the standard variant was obtained.
Fires event
reset
to attached listeners.
Expects the following event parameters:
selectionSet
of type sap.ui.core.Control[]
Visible controls
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
search
to attached listeners.
Expects the following event parameters:
selectionSet
of type sap.ui.core.Control[]
Visible controls
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
getAdvancedMode(): boolean
Gets current value of property
advancedMode
.
The advanced mode overwrites the standard behavior and is used in the value help scenario.
Default value is false
.
Returns:
{boolean} | Value of property advancedMode |
getAllFilterItems(bConsiderOnlyVisibleFields): array
Retrieves filters belonging to the current variant.
Parameters:
{boolean} | bConsiderOnlyVisibleFields | Indicates that only visible filters are retrieved |
Returns:
{array} | filters Of the current variant |
ID of the element which is the current target of the association basicSearch
, or null
.
- Since:
- 1.30.0
Returns:
getConsiderGroupTitle(): boolean
Gets current value of property
considerGroupTitle
.
If this property is set, then the label for filters will be prefixed with the group title.
Default value is false
.
- Since:
- 1.28.0
Returns:
{boolean} | Value of property considerGroupTitle |
getCurrentVariantId(): string
Retrieves the current variant ID.
- Since:
- 1.28.0
Returns:
{string} | ID of the current variant |
getDataSuiteFormat(bConsiderAllFilters): string
Retrieves the current variant as selection variant for UI navigation
Parameters:
{boolean} | bConsiderAllFilters | also include empty/invisible fields filter data |
- Since:
- 1.28.0 Also include empty/invisible fields filter data
Returns:
{string} | JSON string representing the selection variant for UI navigation; null otherwise |
getDeltaVariantMode(): boolean
Gets current value of property
deltaVariantMode
.
Stores the delta as compared to the standard variant.
Default value is true
.
- Since:
- 1.34.0
Returns:
{boolean} | Value of property deltaVariantMode |
getFilterBarExpanded(): boolean
Gets current value of property
filterBarExpanded
.
Shows/hides the filter row.
Default value is true
.
- Since:
- 1.26.1
Returns:
{boolean} | Value of property filterBarExpanded |
getFilterContainerWidth(): string
Gets current value of property
filterContainerWidth
.
Sets the width of the filters container.
Default value is 12rem
.
- Since:
- 1.34.0
Returns:
{string} | Value of property filterContainerWidth |
Gets content of aggregation
filterGroupItems
.
Filters belonging to groups other than the basic group.
Returns:
Gets content of aggregation
filterItems
.
Filters belonging to the basic group.
Returns:
getHeader(): string
Gets current value of property
header
.
Specifies header text that is shown in the toolbar on the first position. This property is ignored, when useToolbar
is set to false
.
- Since:
- 1.38.0
Returns:
{string} | Value of property header |
getPersistencyKey(): string
Gets current value of property
persistencyKey
.
Key used to access personalization data.
Returns:
{string} | Value of property persistencyKey |
getShowClearButton(): boolean
Gets current value of property
showClearButton
.
Handles visibility of the Clear button on the Filters dialog.
Default value is false
.
- Since:
- 1.26.1
Returns:
{boolean} | Value of property showClearButton |
getShowClearOnFB(): boolean
Gets current value of property
showClearOnFB
.
Handles visibility of the Clear button on the filter bar.
Default value is false
.
- Since:
- 1.28.0
Returns:
{boolean} | Value of property showClearOnFB |
getShowFilterConfiguration(): boolean
Gets current value of property
showFilterConfiguration
.
Handles visibility of the Filters button on the filter bar.
Default value is true
.
- Since:
- 1.38.0
Returns:
{boolean} | Value of property showFilterConfiguration |
getShowGoOnFB(): boolean
Gets current value of property
showGoOnFB
.
Handles visibility of the Go button on the filter bar.
Default value is true
.
- Since:
- 1.28.0
Returns:
{boolean} | Value of property showGoOnFB |
getShowRestoreButton(): boolean
Gets current value of property
showRestoreButton
.
Handles visibility of the Restore button on the Filters dialog.
Default value is true
.
- Since:
- 1.26.1
Returns:
{boolean} | Value of property showRestoreButton |
getShowRestoreOnFB(): boolean
Gets current value of property
showRestoreOnFB
.
Handles visibility of the Restore button on the filter bar.
Default value is false
.
- Since:
- 1.28.0
Returns:
{boolean} | Value of property showRestoreOnFB |
getUseToolbar(): boolean
Gets current value of property
useToolbar
.
Determines what design should be used. Default is the design with the toolbar. In mobile scenarios this property is ignored - the design with the toolbar will be used.
Default value is true
.
- Since:
- 1.38.0
Returns:
{boolean} | Value of property useToolbar |
indexOfFilterGroupItem(oFilterGroupItem): int
Checks for the provided sap.ui.comp.filterbar.FilterGroupItem
in the aggregation filterGroupItems
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfFilterItem(oFilterItem): int
Checks for the provided sap.ui.comp.filterbar.FilterItem
in the aggregation filterItems
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a filterGroupItem into the aggregation filterGroupItems
.
Parameters:
{sap.ui.comp.filterbar.FilterGroupItem} | oFilterGroupItem | the filterGroupItem to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the filterGroupItem should be inserted at; for a negative value of iIndex , the filterGroupItem is inserted at position 0; for a value greater than the current size of the aggregation, the filterGroupItem is inserted at the last position |
Returns:
Inserts a filterItem into the aggregation filterItems
.
Parameters:
{sap.ui.comp.filterbar.FilterItem} | oFilterItem | the filterItem to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the filterItem should be inserted at; for a negative value of iIndex , the filterItem is inserted at position 0; for a value greater than the current size of the aggregation, the filterItem is inserted at the last position |
Returns:
registerApplyData(fCallBack)
Registration of a callback function. The provided callback function is executed when a variant must be applied. The callback function will receive the corresponding data set containing all relevant data in JSON, as initially provided by the callback for fetchData.
Parameters:
{function} | fCallBack | Called when a variant must be applied |
registerFetchData(fCallBack)
Registration of a callback function. The provided callback function is executed when saving a variant is triggered and must provide all relevant fields and values in JSON.
Parameters:
{function} | fCallBack | Called when a variant must be fetched |
registerGetFiltersWithValues(fCallBack)
Registration of a callback function. The provided callback function is executed to obtain the filters with values.
Parameters:
{function} | fCallBack | Called when a variant must be applied |
- Since:
- 1.26.1
Removes all entries in the aggregation filterGroupItems.
Returns:
removeAllFilterItems()
Removes all entries in the aggregation filterItems.
removeAllFilters()
Removes all entries in the aggregations filterItems, filterGroupItems, basicSearch
removeBasicSearch()
Removes the association basicSearch.
- Since:
- 1.30.0
Removes a filterGroupItem from the aggregation filterGroupItems
.
Parameters:
Returns:
Removes a filterItem from the aggregation filterItems
.
Parameters:
Returns:
retrieveFiltersWithValues(): array
Retrieves the labels of all visible filters that belongs to the current variant and have an assigned value.
Returns:
{array} | Filter labels that represents relevant filters with values |
retrieveFiltersWithValuesAsText(): array
Retrieves the labels of all visible filters that belongs to the current variant and have an assigned value.
Returns:
{array} | Filter labels that represents relevant filters with values |
setAdvancedMode(bFlag)
The advanced mode is only relevant for the value help scenario. UI representation is different from the standard filter bar.
Parameters:
{boolean} | bFlag | Sets the advanced mode |
setBasicSearch(oBasicSearchField)
Adds a basic search field to the toolbar.
Parameters:
Sets a new value for property
considerGroupTitle
.
If this property is set, then the label for filters will be prefixed with the group title.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bConsiderGroupTitle | New value for property considerGroupTitle |
- Since:
- 1.28.0
Returns:
setCurrentVariantId(sVariantId, bDoNotApplyVariant)
Sets the current variant ID.
Parameters:
{string} | sVariantId | ID of the variant |
{boolean} | bDoNotApplyVariant | If set to true , the applyVariant method is not executed yet. Relevant during navigation, when called before the initialise event has been executed. |
- Since:
- 1.28.0
setDataSuiteFormat(sSuiteData, bReplace)
Sets the selection variant for UI navigation to FilterBar.
Parameters:
{string} | sSuiteData | Represents the selection variants for UI navigation |
{boolean} | bReplace | Replaces existing filter data |
- Since:
- 1.28.0
Sets a new value for property
deltaVariantMode
.
Stores the delta as compared to the standard variant.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bDeltaVariantMode | New value for property deltaVariantMode |
- Since:
- 1.34.0
Returns:
setFilterBarExpanded(bShowExpanded)
Sets filterbar in collapsed/expanded mode.
Parameters:
{boolean} | bShowExpanded | Mode |
- Since:
- 1.26.1
Sets a new value for property
filterContainerWidth
.
Sets the width of the filters container.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 12rem
.
Parameters:
{string} | sFilterContainerWidth | New value for property filterContainerWidth |
- Since:
- 1.34.0
Returns:
Sets a new value for property
header
.
Specifies header text that is shown in the toolbar on the first position. This property is ignored, when useToolbar
is set to false
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sHeader | New value for property header |
- Since:
- 1.38.0
Returns:
setPersistencyKey(sPersistenceKey)
Sets the persistency key.
Parameters:
{string} | sPersistenceKey | ID for persistency |
Sets a new value for property
showClearButton
.
Handles visibility of the Clear button on the Filters dialog.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bShowClearButton | New value for property showClearButton |
- Since:
- 1.26.1
Returns:
setShowClearOnFB(bFlag)
Handles the visibility for the Clear button in the filter bar. On phone devices, the value is always treated as false.
Parameters:
{boolean} | bFlag | State of visibility |
- Since:
- 1.28.0
setShowGoOnFB(bFlag)
Handles the visibility of the Go button on filter bar.
Parameters:
{boolean} | bFlag | State of visibility |
- Since:
- 1.28.0
Sets a new value for property
showRestoreButton
.
Handles visibility of the Restore button on the Filters dialog.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowRestoreButton | New value for property showRestoreButton |
- Since:
- 1.26.1
Returns:
setShowRestoreOnFB(bFlag)
Handles the visibility of the Restore button in the filter bar. On phone devices, the value is always treated as false.
Parameters:
{boolean} | bFlag | State of visibility |
- Since:
- 1.28.0
Sets a new value for property
useToolbar
.
Determines what design should be used. Default is the design with the toolbar. In mobile scenarios this property is ignored - the design with the toolbar will be used.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bUseToolbar | New value for property useToolbar |
- Since:
- 1.38.0
Returns:
getSearchEnabled(): boolean
Gets current value of property
searchEnabled
.
Enables/disables the Search button.
Default value is true
.
- Deprecated:
- Since version 1.32.0.
Returns:
{boolean} | Value of property searchEnabled |