modals with a new inertia-page component #584
dillingham
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
showing edit modal on index, similar to vue's nested routes
id
url
the functional
inertia-page
component would do the following when mounted / modal :show == true
And you could open the modal like so:
and close the modal, idea
<inertia-link>
is smart and knows that#edit-1
is a modal frominertia-page
or a section on the page with smooth scroll mayberender('Organizations/Edit')
would be it's own unique layout, not a modal.And
edit-organization-form
shared between Edit and modals anywhereAnd use same inertia responses to populate that form when in a modal
So, edit from a index item or show page and it would work the same
And a
wantsJson
form option, could pass a boolean to the form to bubble up the form response.Which would allow "multiple stacks" because you could navigate to next in
nextForm
Mostly valuable for creating related records on the fly or appending lists
Beta Was this translation helpful? Give feedback.
All reactions