ActionBarItem
A button in the ActionBar area at the top of one of the list or detail views.
id
stringA unique identifier for the item.
label
stringThe label to display for the item. This can also be a translation token,
e.g. invoice-plugin.print-invoice.
locationId
ActionBarLocationIdThe location in the UI where this button should be displayed.
disabled
Observable<boolean>Deprecated since v2.1.0 - use buttonState instead.
buttonState
A function which returns an observable of the button state, allowing you to dynamically enable/disable or show/hide the button.
onClick
(event: MouseEvent, context: ActionBarContext) => voidrouterLink
RouterLinkDefinitionbuttonColor
'primary' | 'success' | 'warning'buttonStyle
'solid' | 'outline' | 'link'icon
stringAn optional icon to display in the button. The icon should be a valid shape name from the Clarity Icons set.
requiresPermission
string | string[]Control the display of this item based on the user permissions. Note: if you attempt to pass a PermissionDefinition object, you will get a compilation error. Instead, pass the plain string version. For example, if the permission is defined as:
then the generated permission strings will be:
CreateProductReviewReadProductReviewUpdateProductReviewDeleteProductReview