Skip to content

Commit f0cccc6

Browse files
loic425crydotsnake
andauthored
Update docs/cookbook/admin_panel/menu.md
Co-authored-by: Simon Krull <[email protected]>
1 parent f20bac1 commit f0cccc6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/cookbook/admin_panel/menu.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ final readonly class MenuBuilder implements MenuBuilderInterface
9595
It's possible to expand your parent menu category on page load by default. For that, you have to set the `setExtra` attribute like this:
9696

9797
```php
98-
$newSubmenu = $menu
99-
->addChild('new')
100-
->setLabel('Custom Admin Menu')
98+
$library = $menu
99+
->addChild('library')
100+
->setLabel('app.ui.library')
101+
->setLabelAttribute('icon', 'tabler:books')
101102
->setExtra('always_open', true);
102103
```
103104

0 commit comments

Comments
 (0)