Table: Trigger Modal from Action in Another Modal #6185
Unanswered
intrepidws
asked this question in
Help
Replies: 4 comments 11 replies
|
Currently modals cannot be nested |
4 replies
|
This is just a suggestive option. For Filament pages, this might help you. Call this when the first action is finished. $this->displayMountedAction('message', ['body' => 'Some text']);trait CanCallMountedAction
{
public function displayMountedAction(string $action, ?array $data = []): void
{
$this->mountAction($action);
if ($data) {
$this->getMountedActionForm()->fill($data);
}
}
} |
2 replies
|
I try to render an action button within a view that is loaded by an action. Although the button renders successfully, clicking on it does not open the modal. Do you have any ideas on how to make this work? |
0 replies
|
Hello @danharrin, I need to trigger one modal based on the action of a previous modal. That is the kind of scenario which you refer to as nested modals. I also read your comment about Filament not supporting nested modals. Is there a workaround this? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have the following action code in a table, that opens a modal:
When the user clicks the submit button, I'd like to close that modal and open this modal from another action:
Is that possible?
All reactions