F
Filamentβ€’3mo ago
Vladimir

Is it possible to show multiple modals on page

I have made a custom Dashboard page where i would like to display two or more action buttons. What i have done is as this first code screenshot, where i have shown custom Dashboard class. There are two methods, one to create Expense, and another to create report. The view, is simple:
<x-filament-panels::page>
{{ $this->createReport() }}
{{ $this->createExpense() }}
</x-filament-panels::page>
<x-filament-panels::page>
{{ $this->createReport() }}
{{ $this->createExpense() }}
</x-filament-panels::page>
However, only First one pops the modal. If i remove Slide from second one, still the same, only createReport shows the modal. If i remove createReport from tempalte, no modal shown. Any ideas, why modal is not shown?
No description
Solution:
Not out of the box, I think this is coming to V4
Jump to solution
4 Replies
Solution
toeknee
toekneeβ€’3mo ago
Not out of the box, I think this is coming to V4
Vladimir
VladimirOPβ€’3mo ago
ahhh i see. lost a couple hours debugging me. πŸ˜„ thanks mate
toeknee
toekneeβ€’3mo ago
We basically store the state and then flip between them to avoid hundreds of html modals but I have a feeling we are allowing multiples with a condition
Vladimir
VladimirOPβ€’3mo ago
that would be extremely useful making some work around is possible, i suppose, but one would expect to perhaps make some ref to a modal, and then pop correct one anyway voting up to have posible multiuple modals on page
Want results from more Discord servers?
Add your server