Constructor
new GridActionButtonComponent()
Extends
- Component
Members
color :string
The CSS color of the action button.
Type:
- string
hidden :boolean
If true, the action button will be hidden.
Type:
- boolean
text :string
The text shown on the action button.
Type:
- string
Methods
on_click($event)
Called when the button is clicked. Emits a click event and updates the text, color, and hide status.
Parameters:
Name | Type | Description |
---|---|---|
$event |
MouseEvent |
update_color()
Determine the color to show on the button based on the column definition.
update_hidden()
Determine whether the button should be shown or not, based on the column definition.
update_text()
Determine the text to show on the button based on the column definition.
(async) vue_on_create() → {Promise.<void>}
Called when the component is instantiated. Updates the text, color, and hide status.
Returns:
- Type
- Promise.<void>
watch_col()
Called when the column value changes. Updates the text, color, and hide status.
watch_row()
Called when the row value changes. Updates the text, color, and hide status.