Filament Modal
I have a custom page contain button on click on that button i want modal to open i tried to use emit but it doesnt work
my blade code
my .php file
```
<?php
namespace App\Filament\Pages;
use Filament\Pages\Page;
use Filament\Forms;
use Filament\Forms\Components\TextInput;
use Filament\Notifications\Notification;
use Filament\Actions\Action;
class Members extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.members';
protected static ?string $navigationLabel = "members";
protected static ?string $title = "members";
protected ?string $heading = "";
public $showInvitationModal = true;
public function openModal()
{
$this->showInvitationModal = true;
}
public function closeModal()
{
$this->showInvitationModal = false;
}
}
3 Replies
Why not a modal form?
https://filamentphp.com/docs/3.x/actions/modals#modal-forms
i tried to use it on custom page but it doesnt work i am still new to filament
here is my code after i tried to use it
component blade
and component class
Boa tarde, estou com problema de executar script customizado, quando abro um modal no action table Filament 3, alguém sabe como resolver. ?