The ui5-view-settings-dialog component helps the user to sort data within a list or a table. It consists of several lists like Sort order which is built-in and Sort By and Filter By lists, for which you must be provide items(ui5-sort-item & ui5-filter-item respectively) These options can be used to create sorters for a table.
The ui5-view-settings-dialog interrupts the current application processing as it is the only focused UI element and the main screen is dimmed/blocked. The ui5-view-settings-dialog is modal, which means that user action is required before returning to the parent window is possible.
Structure
A ui5-view-settings-dialog consists of a header, content, and a footer for action buttons. The ui5-view-settings-dialog is usually displayed at the center of the screen.
Responsive Behavior
ui5-view-settings-dialog stretches on full screen on phones.
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Name
Type
Default Value
Description
sortDescending
sort-descending
boolean
false
Defines the initial sort order.
Slots
This Element provides slot(s). This means it can display its child nodes.
Unless targeting the default slot, use the slot attribute to define the destination slot for each child.
Text, along with HTML Elements with no slot attribute, goes the the default slot.
Slot
Type
Description
filterItems
HTMLElement [0..n]
Defines the filterItems list. Note: If you want to use this slot, you need to import used item: import "@ui5/webcomponents-fiori/dist/FilterItem";
sortItems
HTMLElement [0..n]
Defines the list of items against which the user could sort data. Note: If you want to use this slot, you need to import used item: import "@ui5/webcomponents-fiori/dist/SortItem";
Events
This Web Component fires semantic events upon user interaction. You can bind to these events with the standard DOM APIs, such as addEventListener.
Name
Description
before-open
Fired before the component is opened. This event does not bubble.
cancel
Fired when cancel button is activated.
sortOrder
type: String description: The current sort order selected.
sortBy
type: String description: The currently selected ui5-sort-item text attribute.
sortByItem
type: HTMLElement description: The currently selected ui5-sort-item.
sortDescending
type: Boolean description: The selected sort order (true = descending, false = ascending).
filterItems
type: Array description: The selected filters items.
confirm
Fired when confirmation button is activated.
sortOrder
type: String description: The current sort order selected.
sortBy
type: String description: The currently selected ui5-sort-item text attribute.
sortByItem
type: HTMLElement description: The currently selected ui5-sort-item.
sortDescending
type: Boolean description: The selected sort order (true = descending, false = ascending).
filterItems
type: Array description: The selected filters items.
Methods
This Web Component exposes public methods. You can invoke them directly on the Web Component instance.
Name
Description
setConfirmedSettings
Sets a JavaScript object, as settings to the ui5-view-settings-dialog. This method can be used after the dialog is initially open, as the dialog need to set its initial settings. The ui5-view-settings-dialog throws an event called "before-open", this can be used as trigger point. The object should have the following format: {sortOrder: "Ascending", sortBy: "Name", filters: [{"Filter 1": ["Some filter 1", "Some filter 2"]}, {"Filter 2": ["Some filter 4"]}]}
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Name
Type
Default Value
Description
additionalText
additional-text
string
""
Defines the additional text of the component.
text
string
""
Defines the text of the component.
Slots
This Element provides slot(s). This means it can display its child nodes.
Unless targeting the default slot, use the slot attribute to define the destination slot for each child.
Text, along with HTML Elements with no slot attribute, goes the the default slot.
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Name
Type
Default Value
Description
selected
boolean
false
Defines if the component is selected.
text
string
""
Defines the text of the component.
Theme:Morning Horizon (Light)Evening Horizon (Dark)Horizon High Contrast BlackHorizon High Contrast WhiteQuartz LightQuartz DarkQuartz High Contrast BlackQuartz High Contrast White