arul
no message custome modal button, wire:confirm
<x-filament::button color="danger" wire:click="ditolak({{ $product->id }})"
wire:confirm="Apa Anda yakin?">ditolak</x-filament::button>
why no message confirmation custome modal page, when i use wire:confirm laravel ??
4 replies
when modal confirmation, i click confirm and code runs but modal still appears.
this my custome page code , How make modal
do not appear after i click confirm.
public function sendingAction(): Action
{
return Action::make('sending')
->label('Kirim')
->modalHeading('Kirim Barang Masuk Tidak Bisa di Edit')
->requiresConfirmation();
}
my view custome page
<x-filament-panels::form wire:submit="kirim">
<input type="hidden" wire:model="userId" >
<div>
{{ $this->sendingAction }}
<x-filament-actions::modals />
</div>
</x-filament-panels::form>
6 replies
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>
5 replies