How can I find out if the action is inside Table in V4?

Hi guys, I want to have only iconButtons in tables. I really love that now all actions are just Action, but I dont know if is possible to check, if action is used inside table.
private function configureActions(): void
{
Action::configureUsing(function (Action $action): void {
if (in_array($action->getName(), ['view', 'edit', 'detach', 'dissociate', 'delete'])) {
if ($action->getTable()) {
$action->iconButton()->color('gray');
}
}
});
}
private function configureActions(): void
{
Action::configureUsing(function (Action $action): void {
if (in_array($action->getName(), ['view', 'edit', 'detach', 'dissociate', 'delete'])) {
if ($action->getTable()) {
$action->iconButton()->color('gray');
}
}
});
}
This gets me null in table.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?