Skip to content

Commit 933d4be

Browse files
committed
fix: sortable added
1 parent 6b56fc6 commit 933d4be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/storybook-vue/stories/components/data-grid/DataGrid.stories.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ Expected format: unformatted `string`, eg `'this is a string'`
13851385

13861386
## Presort
13871387

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

13901390
<Canvas withSource="close">
13911391
<Story name="Presort">
@@ -1398,8 +1398,9 @@ To make grid presorted by certain field on init, add next props to this field: `
13981398
{
13991399
type: 'text',
14001400
label: 'Name',
1401+
sortable: true,
14011402
presort: true,
1402-
presortDirection: 'descending'
1403+
presortDirection: 'descending',
14031404
},
14041405
{
14051406
type: 'checkbox',

0 commit comments

Comments
 (0)