parthtejpal
parthtejpal
FFilament
Created by parthtejpal on 11/30/2024 in #❓┊help
Show a page of a resource in a custom filament page
The only downside is that it also shows the components like sidebar and topbar in the modal
6 replies
FFilament
Created by parthtejpal on 11/30/2024 in #❓┊help
Show a page of a resource in a custom filament page
I have tried your answer and found a way. Made a method on the page like : public function openModal($record): void { $this->url = XResource::getUrl('edit', ['record' => $record]); $this->dispatch('open-modal', id: 'edit-record'); }... In the view: <x-filament::modal id="edit-record" slide-over width="6xl"> <iframe wire:key="$url" loading="lazy" src="{{ $url }}" class="h-full"></iframe> </x-filament::modal>
6 replies
FFilament
Created by parthtejpal on 11/30/2024 in #❓┊help
Show a page of a resource in a custom filament page
Thanks for your answer. How can I open a modal with the view file containing the iframe on the click of a button?
6 replies