tsimport {useTableSelectionState} from '@astryxdesign/core/Table'
| Param | Type | Description |
|---|---|---|
datarequired | T[] | The full data array rendered in the table. |
idKeyrequired | (keyof T & string) | ((item: T) => string) | Key extractor: property name or function returning a unique string ID. |
selectedKeysrequired | Set<string> | Controlled set of selected item IDs. |
setSelectedKeysrequired | Dispatch<SetStateAction<Set<string>>> | Setter for the controlled selected keys. |
getIsItemSelectable | (item: T) => boolean (default: () => true) | Should this row show a checkbox? Non-selectable rows are excluded from select-all. |
getIsItemEnabled | (item: T) => boolean (default: () => true) | Is this row checkbox interactive? Disabled rows are frozen: select-all preserves their state. |