Form Actions (Create and Cancel)

Can I modify the style of those actions. (label and sequence)
No description
2 Replies
toeknee
toeknee2mo ago
Just override them?
public function getActions() {
return [
Actions\CancelAction::make(),
Actions\SaveAction::make(),
];
}
public function getActions() {
return [
Actions\CancelAction::make(),
Actions\SaveAction::make(),
];
}
There are some methods on the form class too, with $form->saveActionLabel() or similar, your IDE should show them on auto complete?
Moe Tarhini
Moe Tarhini2mo ago
yeah I just found them
protected function getFormActions(): array { return [ $this->getCancelFormAction(), $this->getCreateFormAction(), ]; } Thank you
Want results from more Discord servers?
Add your server