Open form in modal with inertia route #1473
Unanswered
jackdaniel9
asked this question in
Help
Replies: 2 comments 3 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi all, i did it without any libraries. But it’s fullwidth. It’s just a page within a modal (using chakra ui) |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am new with inertia, vue and laravel. My question is if I am doing the right thing regarding my application.
I have a page with several blocks that the user can modify. When I click on a block's edit button, a modal opens with the block's form.
For the moment, I only add an
<Link:href="route(...)">Edit</Link>
on each block. When the user clicks on the link, the controller returns an "Internia::render
" of the same page, but with an "openModal
" parameter of true and the block data.In my view, I make a condition:
if(openModal == true) modal.value = true;
<TransitionRoot as="template" :show="modal">
This works great and a modal appears with the block form (component), but is this the right way?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions