mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
This commit is contained in:
parent
7459fdb08b
commit
827a9822e7
4 changed files with 5 additions and 3 deletions
|
@ -1844,7 +1844,7 @@
|
||||||
"ts": "interface DataTableCell { key: DataTableKey; value: DataTableValue; }"
|
"ts": "interface DataTableCell { key: DataTableKey; value: DataTableValue; }"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"rest_props": { "type": "InlineComponent", "name": "TableContainer" }
|
"rest_props": { "type": "Element", "name": "div" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"moduleName": "DataTableSkeleton",
|
"moduleName": "DataTableSkeleton",
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
* @event {DataTableRow} mouseleave:row
|
* @event {DataTableRow} mouseleave:row
|
||||||
* @event {{ expanded: boolean; row: DataTableRow; }} click:row--expand
|
* @event {{ expanded: boolean; row: DataTableRow; }} click:row--expand
|
||||||
* @event {DataTableCell} click:cell
|
* @event {DataTableCell} click:cell
|
||||||
|
* @restProps {div}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DataTable headers="{headers}" rows="{rows}" />
|
<DataTable headers="{headers}" rows="{rows}" style="" class="class" />
|
||||||
|
|
||||||
<DataTable headers="{headers}" rows="{rows}">
|
<DataTable headers="{headers}" rows="{rows}">
|
||||||
<span slot="cell-header" let:header>
|
<span slot="cell-header" let:header>
|
||||||
|
|
3
types/DataTable/DataTable.d.ts
vendored
3
types/DataTable/DataTable.d.ts
vendored
|
@ -35,7 +35,8 @@ export interface DataTableCell {
|
||||||
value: DataTableValue;
|
value: DataTableValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DataTableProps {
|
export interface DataTableProps
|
||||||
|
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||||
/**
|
/**
|
||||||
* Specify the data table headers
|
* Specify the data table headers
|
||||||
* @default []
|
* @default []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue