How to make navigation in cluster to topNavigation?

I have cluster for advertisement and they want to make the cluster navigation top instead of the usuall left menu.. <?php namespace App\Filament\Clusters; use Filament\Clusters\Cluster; class Advertisement extends Cluster { protected static ?string $navigationIcon = 'heroicon-o-squares-2x2'; }
Solution:
Leandro Ferreira (@leandrocfe) on X
💡Filament Tip: If you’re utilizing Clusters, you can configure SubNavigationPosition::Top. This configuration will display your resource in a tab 🙃
From An unknown user
Twitter
Jump to solution
4 Replies
Solution
LeandroFerreira
Leandro Ferreira (@leandrocfe) on X
💡Filament Tip: If you’re utilizing Clusters, you can configure SubNavigationPosition::Top. This configuration will display your resource in a tab 🙃
From An unknown user
Twitter
Jerome V
Jerome VOP4w ago
where to put that? in the main cluster? or on the resources? <?php namespace App\Filament\Clusters; use Filament\Clusters\Cluster; use Filament\Pages\SubNavigationPosition; class Advertisement extends Cluster { protected static ?string $navigationIcon = 'heroicon-o-squares-2x2'; protected static SubNavigationPosition $subNavigationPosition = SubNavigationPosition::Top; } this is on the cluster but not working
LeandroFerreira
Resource
Jerome V
Jerome VOP4w ago
Thank you sir.. it's working now..
Want results from more Discord servers?
Add your server