Skip to content

Home > @liquidrazor/list-display > SortBarProps

SortBarProps interface

Props for the sort bar slot. This surface exposes the fields that can be sorted alongside a handler to update the current sort descriptor.

Signature:

typescript
export interface SortBarProps

Properties

Property

Modifiers

Type

Description

fields

Array<FieldSchema<any>>

Fields that can be sorted.

onChangeSort?

(fieldId: string) => void

(Optional) Handler invoked when the user selects a new field to sort by.

state

ListState<any>

Current list state including the active sort descriptor.