File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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';
16171617export 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 >
You can’t perform that action at this time.
0 commit comments