Replies: 1 comment
-
You can use For reusable modal component, you can check this package |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello,
im trying to create simple table with actions column, then add somewhere at top 1 "Add Record" button and use modals.
So I used format on Column
Column::make('Actions') ->format(function($value, $column, $row) { return view('livewire.pdns.records-table-actions'); }),
and defined blade as:
<a href="#" wire:click.prevent="manageRecords()" class="text-primary-600 font-medium hover:text-primary-900">Manage</a>
pretty simple, but how to pass rowid to blade? For "manageRecords($id)"
And another question is, where and how to put modal and how to link it "correct" livewire component.
I mean, is it better to put all this functionality together into one component - table? Or do you recommend to separate it?
Sorry for stupid questions, im new to livewire so i am wondering which setup is better.
Currently, this wire:click.prevent="manageRecords()" is looking for function in Table component. Is there an option to manually point him to different component - modal?
Thank you for help.
Beta Was this translation helpful? Give feedback.
All reactions