skashizadeh
skashizadeh
FFilament
Created by skashizadeh on 8/1/2024 in #❓┊help
requireconfirmation for notification action
look at this code \Filament\Notifications\Notification::make() ->warning() ->title('Attention') ->body("There are {$itemCounts} item inside repeader. What should i do?") ->persistent() ->actions([ \Filament\Notifications\Actions\Action::make('Keep') ->color('success') // ->success() ->button() ->icon('heroicon-m-plus') ->emit('createItemKeepOld', ['parameters' => $parameters]) // ->dispatch('createItemsWithParams', $parameters); ->close(), \Filament\Notifications\Actions\Action::make('Remove') ->color('danger') ->button() ->icon('heroicon-m-trash') ->emit('createItemRemoveOld', ['parameters' => $parameters]) // ->dispatch('createItemRemoveOld', $parameters) ->close(), \Filament\Notifications\Actions\Action::make('Cancel') ->button() ->close(), ]) ->send(); i need method ->requiresConfirmation() but look like it does not exist in \Filament\Notifications\Actions\Action. any help?
3 replies
FFilament
Created by skashizadeh on 7/30/2024 in #❓┊help
add between two item inside repeater
Hello, is there a way to add an item between the current and the next item in a repeater? Currently, adding an item is only done at the end of the repeater.
2 replies