F
Filamentβ€’2mo ago
RuiAlmeida

Opening modal from Livewire Component

I'm trying to open a modal from a livewire compoenent:
public function createAction(): Action
{
return Action::make('create')
->form(MenuResource::getFormSchema())
->label('Create');

}
public function createAction(): Action
{
return Action::make('create')
->form(MenuResource::getFormSchema())
->label('Create');

}
<div>
{{ $this->createAction }}
<x-filament-actions::modals />
</div>
<div>
{{ $this->createAction }}
<x-filament-actions::modals />
</div>
This does open the Modal, but without any of the syles from filament. Any ideas?
4 Replies
RuiAlmeida
RuiAlmeidaβ€’2mo ago
Hi, thanks for the reply, yes I was using a normal Filament with the panel etc, but i was trying to show in a non-filament page one modal from a resource. But i guess we dont have the styles etc. Maybe the best approuach would be to create a custom page and a livewire compoenent?
Solution
RuiAlmeida
RuiAlmeidaβ€’2mo ago
ohhh.... Perfect, thank you πŸ™‚ Obrigado !
Want results from more Discord servers?
Add your server