feat: update types and Component Index

This commit is contained in:
albert 2020-10-21 23:40:06 +02:00
commit f51968274f
2 changed files with 19 additions and 14 deletions

7
types/index.d.ts vendored
View file

@ -787,7 +787,12 @@ export class DataTable extends CarbonSvelteComponent {
* Specify the data table headers
* @default []
*/
headers?: { key: string; value: string }[];
headers?: {
key: string;
value: string;
display?: (item) => string;
sort?: (a, b) => number;
}[];
/**
* Specify the rows the data table should render