Skip to content

Commit 70c8a14

Browse files
mkrecek234mvorisek
authored andcommitted
Add support to add label to menugroup
1 parent 3119820 commit 70c8a14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Menu.php

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public function addGroup($name, string $template = 'menugroup.html')
131131

132132
if (isset($name['icon'])) {
133133
Icon::addTo($group, [$name['icon']], ['Icon'])->removeClass('item');
134+
} elseif (isset($name['label'])) {
135+
Label::addTo($group, [$name['label']], ['Icon'])->removeClass('item')->addClass('mini');
134136
}
135137

136138
return $group;

0 commit comments

Comments
 (0)