Relation manager in action/modal
Curious, is it possible to display/edit relation manager in an action/modal instead?
12 Replies
I don't think this is possible at the moment. Depending on the use-case, you can probably get something similar by embedding a table in a custom modal.
sorry a little late but i took ur advice & added a table in livewire component & rendered in an action modal, the prebuilt header/row actions is there to click but aren't working?
code is pretty much the same as in any relation manager class
Not sure I understand, is this something you can show in a screenshot?
code in livewire component
What happens when you click a row or header action? Any error message?
nothing happens
Have you tried to implement a custom modal instead of using the action modal?
hm guess i could try, I'll let u know how it goes
It worked! 😄 altho..
1. Not sure how to remove the button border to be like "update activity" action modal
2.How/where do i do something like $this->fillForm() to refresh the page?
View page:
components\schedule-modal.blade.php :
Livewire component:
1. maybe
->link()
or some custom CSS
2. I think you'll need to emit a Livewire event from the custom component to the page component
in the event handler, you can call $this->form->fill()
or whatever you need