TableCustomAction
Configuration for custom actions in Table.
Properties
actionType?
optionalactionType:TableCustomActionType
Type of custom action
displayName
displayName:
string
Display name for the action
getDynamicClassName?
optionalgetDynamicClassName:Func<CellContext,string>
Function to generate a dynamic class name based on cell context. Receives CellContext as input parameter and should return a CSS class name string.
getDynamicLink?
optionalgetDynamicLink:Func<CellContext,Promise<string>>
Function to generate a dynamic link based on cell context. Receives CellContext as input parameter and should return a Promise resolving to URL string.
getTemplate()?
optionalgetTemplate: (props) =>Element
Template function to render the cell content. Receives TableCustomActionTemplateProps as input and should return a JSX element.
Parameters
props
TableCustomActionTemplateProps
Returns
Element
icon?
optionalicon:string
Icon identifier for the action from iconNames
onCellAction()?
optionalonCellAction: (v) =>void
Handler function called when action is triggered on a body cell. Receives CellContext as parameter.
Parameters
v
Returns
void
onHeaderCellAction()?
optionalonHeaderCellAction: (v) =>void
Handler function called when action is triggered on a header cell. Receives HeaderCellContext as parameter.