IRowAction
Interface: IRowAction<T>
Defined in: src/types/shared-components/DataTable/hooks.ts:129
Configuration for an action available on individual table rows.
Row actions appear as contextual buttons or menu items for each row, allowing users to perform operations on specific row data.
Type Parameters
T
T
The type of row data this action operates on
Properties
ariaLabel?
optionalariaLabel:string
Defined in: src/types/shared-components/DataTable/hooks.ts:146
ARIA label for accessibility when label alone is not descriptive
disabled?
optionaldisabled:boolean| (row) =>boolean
Defined in: src/types/shared-components/DataTable/hooks.ts:144
Whether this action is disabled. Can be a boolean or a function that evaluates the row to determine disabled state.
id
id:
string
Defined in: src/types/shared-components/DataTable/hooks.ts:131
Unique identifier for this action
label
label:
string
Defined in: src/types/shared-components/DataTable/hooks.ts:133
Display label for the action button or menu item
onClick()
onClick: (
row) =>void
Defined in: src/types/shared-components/DataTable/hooks.ts:139
Callback fired when the action is triggered on a row.
Parameters
row
T
The row data the action was triggered for
Returns
void