add an overflow menu selection variant for DataTable

This commit is contained in:
Bilux 2022-10-20 18:40:46 +01:00 committed by GitHub
commit 9c761137e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 3 deletions

View file

@ -128,6 +128,12 @@ export interface DataTableProps
*/
radio?: boolean;
/**
* Set to `true` for the overflow menu selection variant
* @default false
*/
overflowMenu?: boolean;
/**
* Set to `true` for the selectable variant
* Automatically set to `true` if `radio` or `batchSelection` are `true`
@ -176,6 +182,12 @@ export interface DataTableProps
* @default 0
*/
page?: number;
/**
* Obtain a reference to the TableContainer Div HTML element
* @type {null | HTMLDivElement}
*/
tref?: null | HTMLDivElement;
}
export default class DataTable extends SvelteComponentTyped<