@wix/design-system
Version:
@wix/design-system
25 lines (22 loc) • 1.24 kB
Markdown
### dataHook
- type: string
- description: A hook for testing purposes.
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
- internal
### options
- type: TableListHeaderColumn[]
- description: `width` supports px/%/fr
`sortable`: Sets whether this field is sortable. If `true` clicking the header will call `onSortChange`
`sortDescending`: Sets what sort icon to display in the column header. `true` will show an up arrow, `false` will show a down arrow, `undefined' will show no icon
`infoTooltipProps`: Props object for column header's [tooltip](/?path=/story/components-api-components--tooltip). Note: `dataHook`, `moveBy` and `children` will not be passed to tooltip.
### checkboxState
- type: "disabled" | "hidden" | "normal" | "checked" | "hasError" | "indeterminate"
- description: State of Checkbox rendered at first column. 'hidden' to not render it
### onCheckboxChange
- type: () => void
- description: Called when checkbox is clicked
### onSortChange
- type: (colNum: number, nativeEvent: MouseEvent<HTMLDivElement, MouseEvent>) => void
- description: A callback function called on each column title click. Signature `onSortChange(colNum, nativeEvent)`