ruddy
ruddy
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
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 :)
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
<x-filament::tabs.item
:icon="filled($tabKey) ? ($isGroup ? $manager->getIcon() : $manager::getIcon($ownerRecord, $pageClass)) : $this->getNavigationIcon()"
>
@if (filled($tabKey))
{{ $isGroup ? $manager->getLabel() : $manager::getTitle($ownerRecord, $pageClass) }}
@elseif ($content)
{{ $contentTabLabel }}
@endif
</x-filament::tabs.item>
<x-filament::tabs.item
:icon="filled($tabKey) ? ($isGroup ? $manager->getIcon() : $manager::getIcon($ownerRecord, $pageClass)) : $this->getNavigationIcon()"
>
@if (filled($tabKey))
{{ $isGroup ? $manager->getLabel() : $manager::getTitle($ownerRecord, $pageClass) }}
@elseif ($content)
{{ $contentTabLabel }}
@endif
</x-filament::tabs.item>
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
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
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
No description
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
using the following code
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
No description
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
class ViewPaciente extends ViewRecord
{
protected static string $resource = PacienteResource::class;

protected static ?string $navigationIcon = 'heroicon-m-eye';

protected function getHeaderActions(): array
{
return [
Actions\EditAction::make(),
];
}

public function hasCombinedRelationManagerTabsWithContent(): bool
{
return true;
}
}
class ViewPaciente extends ViewRecord
{
protected static string $resource = PacienteResource::class;

protected static ?string $navigationIcon = 'heroicon-m-eye';

protected function getHeaderActions(): array
{
return [
Actions\EditAction::make(),
];
}

public function hasCombinedRelationManagerTabsWithContent(): bool
{
return true;
}
}
still nothing
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
a view page
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
similar to the <#1200379146287718460> question
20 replies
FFilament
Created by ruddy on 3/30/2024 in #❓┊help
Adding an icon to the View option in a RelationManager tab
yeah, did that on the relationmanager, but in the resource view option itself is not working
20 replies