F
Filament15mo ago
arul

help, i make custome page i make button with ->requiresConfirmation(), and Confirmation not show

my action button in my pages protected function getSendActions(): array { return [ Action::make('send') ->label(__('kirim')) ->requiresConfirmation() ->modalHeading('Kirim Barang Masuk') ->modalDescription('Apa Anda yakin untuk Mengirimya Barang masuk karena tidak bisa di edit lagi') ->modalSubmitActionLabel('Yes, Kirim') ->submit('send'), ]; } anda code form in my view <x-filament-panels::form wire:submit="kirim"> <input type="hidden" wire:model="userId" > <x-filament-panels::form.actions :actions="$this->getSendActions()" /> </x-filament-panels::form>
2 Replies
Vp
Vp14mo ago
You forgot <x-filament-actions::modals /> in blade
arul
arulOP14mo ago
thank bro <x-filament-panels::form wire:submit="kirim"> <input type="hidden" wire:model="userId" > <div> {{ $this->sendingAction }} <x-filament-actions::modals /> </div>
Want results from more Discord servers?
Add your server