mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(data-table): fix JSDoc type for expandableRowIds
This commit is contained in:
parent
0a927ae512
commit
1a809c9c3a
6 changed files with 178 additions and 2703 deletions
20
types/index.d.ts
vendored
20
types/index.d.ts
vendored
|
@ -822,6 +822,24 @@ export class DataTable extends CarbonSvelteComponent {
|
|||
*/
|
||||
sortable?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` for the expandable variant
|
||||
* Automatically set to `true` if `batchExpansion` is `true`
|
||||
* @default false
|
||||
*/
|
||||
expandable?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable batch expansion
|
||||
* @default false
|
||||
*/
|
||||
batchExpansion?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the row ids to be expanded
|
||||
*/
|
||||
expandedRowIds?: string[];
|
||||
|
||||
/**
|
||||
* Set to `true` to enable a sticky header
|
||||
* @default false
|
||||
|
@ -829,7 +847,7 @@ export class DataTable extends CarbonSvelteComponent {
|
|||
stickyHeader?: boolean;
|
||||
};
|
||||
|
||||
$$slot_def: { default: { props: any } };
|
||||
$$slot_def: { "expanded-row": { row: any } };
|
||||
}
|
||||
|
||||
export class DataTableSkeleton extends CarbonSvelteComponent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue