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:Jump to solution
You can use SubnavigationPositionTop
https://x.com/leandrocfe/status/1779110042395984294?t=zx1NPMGMzNvlqagXJx6EIw&s=19...
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 🙃
Twitter
4 Replies
Solution
You can use SubnavigationPositionTop
https://x.com/leandrocfe/status/1779110042395984294?t=zx1NPMGMzNvlqagXJx6EIw&s=19
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 🙃
Twitter
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 workingResource
Thank you sir.. it's working now..