Action::make('test')
->tap(function (Action $action) {
$arguments = $action->getArguments();
if (isset($arguments['type']) && $arguments['type'] === 'button') {
$action->grouped()->groupedIcon('heroicon-o-chevron-right');
} else {
$action->button()->color('primary');
}
})
Action::make('test')
->tap(function (Action $action) {
$arguments = $action->getArguments();
if (isset($arguments['type']) && $arguments['type'] === 'button') {
$action->grouped()->groupedIcon('heroicon-o-chevron-right');
} else {
$action->button()->color('primary');
}
})