Adding an icon to the View option in a RelationManager tab
I'm using the hasCombinedRelationManagerTabsWithContent() method to add tabs to my resource ViewRecord, but I can't manage to add an icon to the View tab :(
For the relation icons I did using the icon property.


14 Replies
in the relation class
protected static ?string $icon = 'heroicon-m-eye';
yeah, did that on the relationmanager, but in the resource view option itself is not working
similar to the <#1200379146287718460> question
the
Visualizar
page is a relation? or view page? I see Consultas
has an icon!a view page
try add the
$navigationIcon
to the view class
still nothing
I am using it here, but been searching how and cant found it lol
https://demo.larazeus.com/admin/forms/feedback
this def works
for me it doesnt, lol

using the following code
really weird
try
$activeNavigationIcon
and also use the getters
function getNavigationIcon
it's weird because if i use a record subnavigation it shows the icon, but in the relationmanager tab it doesn't :(

fixed that going to
filament/resources/views/components/resources/relation-managers.blade.php
view and passing the getNavigationIcon on the icon param on x-filament::tabs.item livewire component
I hope you didnt edit the file in the vendor? I guess you're on older version!
nope, running on latest version of filament. but nevermind, I just changed the relationmanager tab to a resource subnavigation that works fine with icons and looks the same :)