mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Added pagination to editabletable
This commit is contained in:
@@ -79,7 +79,7 @@ export const EditableTable = <T extends MRT_RowData & { rowState?: RowState }, P
|
||||
data={getData()}
|
||||
enableTopToolbar={false}
|
||||
enableColumnActions={false}
|
||||
enablePagination={false}
|
||||
enablePagination={getData().length > 15}
|
||||
state={{ density: 'compact' }}
|
||||
muiTableBodyRowProps={({ row }: { row: MRT_Row<T> }) => ({
|
||||
sx: { backgroundColor: rowStateToColor(row.original.rowState) },
|
||||
|
||||
Reference in New Issue
Block a user