Skip to content

Commit cd58172

Browse files
anaisbergSimonClo
authored andcommitted
✨ sort columns
1 parent 70103b3 commit cd58172

File tree

1 file changed

+7
-4
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks

1 file changed

+7
-4
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/DatabaseBlock.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ export const DatabaseBlock = createReactBlockSpec(
4040

4141
// Column Definitions: Defines the columns to be displayed.
4242
const colDefs: ColDef[] = [
43-
{ field: 'make' } as const,
44-
{ field: 'model' } as const,
45-
{ field: 'price' } as const,
46-
{ field: 'electric' } as const,
43+
{ field: 'make', unSortIcon: true, sort: 'desc' },
44+
{
45+
field: 'model',
46+
unSortIcon: true,
47+
},
48+
{ field: 'price', unSortIcon: true },
49+
{ field: 'electric' },
4750
];
4851

4952
const defaultColDef = {

0 commit comments

Comments
 (0)