Interface

Action

Action

An action to be displayed inside an ActionCell
Properties:
Name Type Attributes Description
buttonClass string <optional>
Class for the button. If not populated, the cell's buttonClass will be used.
buttonColor ButtonColor <optional>
See https://flowbite-svelte.com/docs/pages/typescript. If not populated, the cell's buttonColor will be used.
caption string <optional>
Text displayed with the icon.
name string Name of the action. Returned as part of the action event on DataGrid when the button is clicked.
icon ConstructorOfATypedSvelteComponent Icon to be displayed in the button.
iconClass string <optional>
Class for the icon to be displayed in the button. If not populated, the cell's iconClass will be used.
isDisabled ActionDisablementFunction <optional>
If populated, will be called to check whether the button should be enabled or disabled for each row.

View Source cells/ActionsCell.doc.ts, line 10