SimpleTableProps<T>
Type parameters
Name |
---|
T |
Hierarchy
-
TsMirrorProps
<T
> -
Pick
(opens in a new tab)<SimpleTableRowProps
<T
>,"rowClick"
|"renderDetail"
>↳
SimpleTableProps
Properties
asChild
• Optional
asChild: boolean
If true, the Table component will be rendered as a child of the Compose component
Default
false;
Inherited from
Defined in
packages/components/src/table/table.tsx:60 (opens in a new tab)
columnWidths
• Optional
columnWidths: string
[]
Array of column widths
When using the Table component
Default
[]
When using the SimpleTable component
Default
[repeat(${columns.length}, var(--sl-table-default-column-width))]
Inherited from
Defined in
packages/components/src/table/table.tsx:55 (opens in a new tab)
density
• Optional
density: "default"
| "compact"
| "comfortable"
The density of the table
Default
"default";
Inherited from
Defined in
packages/components/src/table/table.tsx:75 (opens in a new tab)
options
• Optional
options: Options
<T
>
Other TanStack/Table options
See
https://tanstack.com/table/v8/docs/api/core/table (opens in a new tab)
Defined in
packages/components/src/simple-table/simple-table.tsx:149 (opens in a new tab)
renderDetail
• Optional
renderDetail: (row
: Row
<T
>) => ReactNode
Type declaration
▸ (row
): ReactNode
Parameters
Name | Type |
---|---|
row | Row <T > |
Returns
ReactNode
Inherited from
Pick.renderDetail
Defined in
packages/components/src/simple-table/simple-table-row.tsx:81 (opens in a new tab)
rowClick
• Optional
rowClick: RowClick
<T
>
Inherited from
Pick.rowClick
Defined in
packages/components/src/simple-table/simple-table-row.tsx:80 (opens in a new tab)
setSort
• Optional
setSort: OnChangeFn
<SortingState
>
Setter for SortingState for controlled sort usage
Defined in
packages/components/src/simple-table/simple-table.tsx:162 (opens in a new tab)
sort
• Optional
sort: SortingState
SortingState for controlled sort usage
Defined in
packages/components/src/simple-table/simple-table.tsx:158 (opens in a new tab)
sortable
• Optional
sortable: boolean
Defines if columns will be sortable
Default
false;
Defined in
packages/components/src/simple-table/simple-table.tsx:154 (opens in a new tab)
stickyColumn
• Optional
stickyColumn: boolean
If true, the first column will be sticky
Default
false;
Inherited from
Defined in
packages/components/src/table/table.tsx:70 (opens in a new tab)
stickyHeader
• Optional
stickyHeader: boolean
If true, the header will be sticky
Default
false;
Inherited from
Defined in
packages/components/src/table/table.tsx:65 (opens in a new tab)
virtualizer
• Optional
virtualizer: UseVirtualizerModelReturn
Virtualizar table model
Defined in
packages/components/src/simple-table/simple-table.tsx:166 (opens in a new tab)