FilamentF
Filament10mo ago
Arjen

Different configuration for Actions inside ActionGroup possible?

Is it possible to change the configuration of an Action with configureUsing() if that action is inside an ActionGroup? My goal is to have all actions be shown as an ->iconButton(), but not if they're wrapped inside an ActionGroup.
Solution
Solved with:
ActionGroup::configureUsing(function (ActionGroup $actionGroup) {
    $actions = $actionGroup->getActions();
    foreach ($actions as $action) {
        $action->grouped();
    }
});
Was this page helpful?