public function myAction(): Action
{
return Action::make('my-action')
->label($this->actionButtonLabel)
->size(ActionSize::Large)
->icon($this->actionIcon)
->extraAttributes([
'title' => $this->actionButtonLabel,
])
->requiresConfirmation()
->modalIcon($this->actionIcon)
->modalHeading($this->actionButtonLabel)
->modalDescription($this->confirmationText)
->modalSubmitActionLabel($this->confirmationSubmitButton)
->action(function () {
$this->closeActionModal();
$this->action();
});
}
public function myAction(): Action
{
return Action::make('my-action')
->label($this->actionButtonLabel)
->size(ActionSize::Large)
->icon($this->actionIcon)
->extraAttributes([
'title' => $this->actionButtonLabel,
])
->requiresConfirmation()
->modalIcon($this->actionIcon)
->modalHeading($this->actionButtonLabel)
->modalDescription($this->confirmationText)
->modalSubmitActionLabel($this->confirmationSubmitButton)
->action(function () {
$this->closeActionModal();
$this->action();
});
}