Skip to content

Commit

Permalink
fix: sortable added
Browse files Browse the repository at this point in the history
  • Loading branch information
tshimber committed Oct 14, 2024
1 parent 6b56fc6 commit 933d4be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ Expected format: unformatted `string`, eg `'this is a string'`

## Presort

To make grid presorted by certain field on init, add next props to this field: `presort: true`, `presortDirection: 'ascending' | 'descending'`.
To make grid presorted by certain field on init, add next props to this field: `sortable: true`, `presort: true`, `presortDirection: 'ascending' | 'descending'`.

<Canvas withSource="close">
<Story name="Presort">
Expand All @@ -1398,8 +1398,9 @@ To make grid presorted by certain field on init, add next props to this field: `
{
type: 'text',
label: 'Name',
sortable: true,
presort: true,
presortDirection: 'descending'
presortDirection: 'descending',
},
{
type: 'checkbox',
Expand Down

0 comments on commit 933d4be

Please sign in to comment.