fix(data-table): fix JSDoc type for expandableRowIds

This commit is contained in:
Eric Liu 2020-10-17 13:45:15 -07:00
commit 1a809c9c3a
6 changed files with 178 additions and 2703 deletions

20
types/index.d.ts vendored
View file

@ -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 {