s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Collections and tables

ListSortSelect

No summary has been written for ListSortSelect. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.

Public export

typescript
import { ListSortSelect } from '@happyvertical/smrt-ui/data';
Import path
@happyvertical/smrt-ui/data
Props
7
Props described
7 of 7
Bindable state
0
Callback events
1
Verified release
0.57.40

Props

NameTypeRequiredDescription
columnsreadonly ListSortSelectColumn[]YesSortable columns; each gives two options, one per direction.
listListSortStateNoThe list's sort state; supplies `sort` and `onChange`.
sortListSortNoCurrent sort of the list, when `list` is not given.
onChange(sort: ListSort) => voidNoCalled with the chosen sort, when `list` is not given.
labelstringNoVisible label for the picker (default "Sort by").
idstringNoId of the select element, tying the label to it.
classstringNoExtra class names.

Bindable state

This component has no bindable public state.

Callback events

  • onChange(sort: ListSort) => void

Examples and explanation