When using EditAction in an ActionGroup, how can the icon be removed?

Hi, I have several EditActions in an ActionGroup and can't remove the icons. Can anyone advise on how to remove the icons? Code:
ActionGroup::make([
EditAction::make('edit1')->icon('')->label('One'),
EditAction::make('edit2')->icon(null)->label('Two'),
EditAction::make('edit3')->icon('name-of-icon-that-does-not-exist')->label('Three'),
]),
ActionGroup::make([
EditAction::make('edit1')->icon('')->label('One'),
EditAction::make('edit2')->icon(null)->label('Two'),
EditAction::make('edit3')->icon('name-of-icon-that-does-not-exist')->label('Three'),
]),
Se attached image for output.
No description
Solution:
Did you do this? ```php Actions\ActionGroup::make([ Actions\EditAction::make('edit1')...
Jump to solution
7 Replies
LeandroFerreira
LeandroFerreira6mo ago
icon(null) should work is it a table action or page action?
BuddhaNature
BuddhaNatureOP6mo ago
Neither of these works:
php// Scenario 1

use Filament\Actions\ActionGroup;
use Filament\Actions\EditAction;

public function getHeaderActions(): array
{
return ActionGroup::make([
EditAction::make('edit1')->icon('')->label('One'),
EditAction::make('edit2')->icon(null)->label('Two'),
EditAction::make('edit3')->icon('name-of-icon-that-does-not-exist')->label('Three'),
]);
}

// Scenario 2

use Filament\Tables\Actions\ActionGroup;
use Filament\Tables\Actions\EditAction;

public function getHeaderActions(): array
{
return ActionGroup::make([
EditAction::make('edit1')->icon('')->label('One'),
EditAction::make('edit2')->icon(null)->label('Two'),
EditAction::make('edit3')->icon('name-of-icon-that-does-not-exist')->label('Three'),
]);
}
php// Scenario 1

use Filament\Actions\ActionGroup;
use Filament\Actions\EditAction;

public function getHeaderActions(): array
{
return ActionGroup::make([
EditAction::make('edit1')->icon('')->label('One'),
EditAction::make('edit2')->icon(null)->label('Two'),
EditAction::make('edit3')->icon('name-of-icon-that-does-not-exist')->label('Three'),
]);
}

// Scenario 2

use Filament\Tables\Actions\ActionGroup;
use Filament\Tables\Actions\EditAction;

public function getHeaderActions(): array
{
return ActionGroup::make([
EditAction::make('edit1')->icon('')->label('One'),
EditAction::make('edit2')->icon(null)->label('Two'),
EditAction::make('edit3')->icon('name-of-icon-that-does-not-exist')->label('Three'),
]);
}
LeandroFerreira
LeandroFerreira6mo ago
->groupedIcon(null)
BuddhaNature
BuddhaNatureOP6mo ago
I added that method and have the same result as before.
LeandroFerreira
LeandroFerreira6mo ago
could you share the code?
Solution
LeandroFerreira
LeandroFerreira6mo ago
Did you do this?
Actions\ActionGroup::make([
Actions\EditAction::make('edit1')
->groupedIcon(null),
...
])
Actions\ActionGroup::make([
Actions\EditAction::make('edit1')
->groupedIcon(null),
...
])
BuddhaNature
BuddhaNatureOP6mo ago
Oooooooooh! That worked. You are my hero.
Want results from more Discord servers?
Add your server