navigationGroup

i used protected static ?string $navigationGroup = "interviews"; in some resources to groub it together but i need to set this navigation groub closed by default.
4 Replies
Igor
Igor5mo ago
You can pass ->collapsed(), but do you need to declare the groups on panel configs https://filamentphp.com/docs/3.x/panels/navigation#customizing-navigation-groups
Ahmed Ali
Ahmed Ali5mo ago
->navigationGroups([
NavigationGroup::make()
->label('Shop')
->icon('heroicon-o-shopping-cart'),
NavigationGroup::make()
->label('Blog')
->icon('heroicon-o-pencil'),
NavigationGroup::make()
->label(fn (): string => __('navigation.settings'))
->icon('heroicon-o-cog-6-tooth')
->collapsed(),
]);
->navigationGroups([
NavigationGroup::make()
->label('Shop')
->icon('heroicon-o-shopping-cart'),
NavigationGroup::make()
->label('Blog')
->icon('heroicon-o-pencil'),
NavigationGroup::make()
->label(fn (): string => __('navigation.settings'))
->icon('heroicon-o-cog-6-tooth')
->collapsed(),
]);
how to groub navgations element inside it and i try it on exits groub and it give me groub static not close and not open?
Igor
Igor5mo ago
For add resources inside the nav group you can set navigation group string inside the resource https://filamentphp.com/docs/3.x/panels/navigation#grouping-navigation-items-under-other-items
Ahmed Ali
Ahmed Ali5mo ago
i used this way to group navigation items
protected static ?string $navigationGroup = 'Settings';
protected static ?string $navigationGroup = 'Settings';
now how to set this group as closed by default and when click its items are appearing?
Want results from more Discord servers?
Add your server
More Posts
Sorry this might be dumb, but how can I extend a method that returns a component with additional...This might be a PHP question more than a Filament question but I'll ask anyway. I'm trying to extenTextColumn displaying custom outputSo in this project of mine, I want to store 3-5 user ids (foreign key) into an array and then possibmask removed on form submitThe mask is removed after the form is submitted. How can I ensure it's persisted? ``` TextInput::[3.2] Select filter not refreshing when not defferedIn 3.2 when with select filter in table, when changing values url is updated but not the table. It wPost form to non-Filament controller from table builder? Using Action?I've got a Filament resource tied to Application models which each belong to a User. I'm trying to madd alert above a form if some condition exists?I need to have some kind of warning message, not a temporary notification, but a static alert displaAdd modal to custom action button without action calledMy project is running on filament v2. I'm using custom pages and a livewire table to show the record[3.2.0] Export - DownloadGreat update, hats off to the team. Slight bug ( hopefully not my end ), when I click the link in thResource with another name besides "$record".How can I use another variable name in my EditRecord class, other than "$record"? I get an error whunsavedChangesAlerts() does not work and generates an errorIn my IDE, the method `unsavedChangesAlerts()` shows an invalid. It also generates the error `Method