@kanunilabs/datagrid / ToolbarButtonSpec
Interface: ToolbarButtonSpec
Properties
disabledReason?
optionaldisabledReason?:string
Set while the button cannot be used: clicks are ignored and this is the reason given.
icon
icon:
string|Element
The glyph: an element (e.g. an inline SVG) or SVG/HTML markup.
label
label:
string
The button's name: its accessible name and the start of its tooltip.
onClick?
optionalonClick?: () =>void
Returns
void
shortcut?
optionalshortcut?:string
Keyboard shortcut shown in the tooltip and as aria-keyshortcuts.
showLabel?
optionalshowLabel?:boolean
Show the label beside the icon. Default false (icon only).
testId?
optionaltestId?:string
data-testid on the button.