Skip to content

Commit d4d0f7b

Browse files
Copilothotlong
andcommitted
Update DataTableSchema to support single/multiple selection modes
Updated DataTableSchema.selectable type to match ObjectTableSchema, supporting boolean | 'single' | 'multiple' values. This ensures type consistency across the codebase and allows proper type checking when ObjectTable passes the selectable value to data-table components. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 11da18b commit d4d0f7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/types/src/data-display.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,12 @@ export interface DataTableSchema extends BaseSchema {
330330
searchable?: boolean;
331331
/**
332332
* Enable row selection
333+
* - boolean: Enable/disable selection (true = multiple selection)
334+
* - 'single': Single row selection
335+
* - 'multiple': Multiple row selection
333336
* @default false
334337
*/
335-
selectable?: boolean;
338+
selectable?: boolean | 'single' | 'multiple';
336339
/**
337340
* Enable column sorting
338341
* @default true

0 commit comments

Comments
 (0)