Skip to content

Commit 7b1ce57

Browse files
authored
Merge pull request #10947 from johannchopin-buyco/patch-1
docs: Update disable sorting property in DataTable documentation
2 parents 4f9fb43 + 9305f99 commit 7b1ce57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/DataTable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ The column headers are buttons that allow users to change the list sort field an
16071607

16081608
### Disabling Sorting
16091609

1610-
It is possible to disable sorting for a specific `<DataTable.Col>` by passing a `sortable` property set to `false`:
1610+
It is possible to disable sorting for a specific `<DataTable.Col>` by passing the `disableSort` property:
16111611

16121612
{% raw %}
16131613
```tsx
@@ -1617,7 +1617,7 @@ import { List, DataTable } from 'react-admin';
16171617
export const PostList = () => (
16181618
<List>
16191619
<DataTable>
1620-
<DataTable.Col source="id" sortable={false} />
1620+
<DataTable.Col source="id" disableSort />
16211621
<DataTable.Col source="title" />
16221622
<DataTable.Col source="body" />
16231623
</DataTable>

0 commit comments

Comments
 (0)