F
Filamentβ€’8mo ago
tim.lalev

Notification Grouped Actions

Hi, I'm trying to group actions on the notifications and I found that this exists even though it's not mentioned in the documentation.
\Filament\Notifications\Actions\ActionGroup::make([

]),
\Filament\Notifications\Actions\ActionGroup::make([

]),
However it kind of looks wonky... out of alignment and not very appealing. Is this a bug or I'm missing something? Appreciate your inputs πŸ‘πŸ»
No description
No description
Solution:
Looks decent without the ->button()
No description
Jump to solution
3 Replies
awcodes
awcodesβ€’8mo ago
Can you share your code. This in not typically how grouped actions look.
tim.lalev
tim.lalevOPβ€’8mo ago
Sure
\Filament\Notifications\Notification::make()
->title($noteInstance->note)
->body($trip->company->name)
->actions([
\Filament\Notifications\Actions\ActionGroup::make([
\Filament\Notifications\Actions\Action::make('view')->label('Mark Read')->button()->markAsRead(),
\Filament\Notifications\Actions\Action::make('view')->label('Call Driver')->button(),
\Filament\Notifications\Actions\Action::make('view')->label('Call Management')->button(),
])
])
->sendToDatabase($trip->contacts()->all());
\Filament\Notifications\Notification::make()
->title($noteInstance->note)
->body($trip->company->name)
->actions([
\Filament\Notifications\Actions\ActionGroup::make([
\Filament\Notifications\Actions\Action::make('view')->label('Mark Read')->button()->markAsRead(),
\Filament\Notifications\Actions\Action::make('view')->label('Call Driver')->button(),
\Filament\Notifications\Actions\Action::make('view')->label('Call Management')->button(),
])
])
->sendToDatabase($trip->contacts()->all());
Thank you for looking into this Omg πŸ€¦β€β™‚οΈ it's the ->button() that messes it up
Solution
tim.lalev
tim.lalevβ€’8mo ago
Looks decent without the ->button()
No description
Want results from more Discord servers?
Add your server