F
Filament11mo ago
wdog

Add Icon in RelationManager Tab for Edit

Hi! I've a resource with 2 relation manager defined
public static function getRelations(): array
{
return [
IngredientsRelationManager::class,
ProceduresRelationManager::class,
];
}
public static function getRelations(): array
{
return [
IngredientsRelationManager::class,
ProceduresRelationManager::class,
];
}
I can add an icon to the TAB RelationManager by simply adding
protected static ?string $icon = 'heroicon-o-light-bulb';
protected static ?string $icon = 'heroicon-o-light-bulb';
to the classes like IngredientsRelationManager but how can I add an icon ( and eventually a badge ) to the Edit tab ( take a look at the image ) thanks
No description
2 Replies
Vp
Vp11mo ago
This edit tab is also relation-manager? If yes, then you can do the same like ingredients, otherwise you need to edit inside pages/editAbclist
wdog
wdogOP11mo ago
in this case I have a recipe ( resource) with relation to procedures steps and ingredients (2 relation ) I can add icons to relation tab but not for main resource tab I've also used
public function hasCombinedRelationManagerTabsWithContent(): bool
{
return true;

}
public function hasCombinedRelationManagerTabsWithContent(): bool
{
return true;

}
in main EditRecipe.php
Want results from more Discord servers?
Add your server