F
Filamentβ€’3mo 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
RuiAlmeidaOPβ€’3mo 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
RuiAlmeidaOPβ€’3mo ago
ohhh.... Perfect, thank you πŸ™‚ Obrigado !
Want results from more Discord servers?
Add your server