Skip to content

SearchResultSortField ​

The component SearchResultSortField shows the current sort field and allows the selection of another sort field.

Properties ​

Parameter ​

Parameters in the Layout ​

NameTypeDescription
hideByEmptyResultboolean
default: false
Defines whether the component should be hidden if the search contains no results.
searchActorSearchActorThe actor is required to get and set the sort field.
viewStackToggleActorLabeledToggleActorThe actor is required to get the current state name to determine if the component needs to be hidden.
hideForViewsarray of string
default: ["grid", "timeline"]
The state names for which the component must be hidden.
searchSetActorSearchSetActorThe actor provides the sorting fields.
sortFieldOptionsarray of (string or FieldOptions)The field names or information of sortable fields.

Field Options ​

NameTypeDescription
field (required)stringField name
label (required)stringText or label key
translate (optional)booleanDefines whether the text should be translated.

Limitation: List-fields are not supported and should not be used.

Request missing documentation