yii2-adminlte
yii2-adminlte copied to clipboard
Add an ability to use multiple badges in a left sidebar menu item wit…
…h sub items
Usage:
[ 'label' => 'Personnes ', 'url' => './#', 'icon' => 'users', 'badges' => [ ['content' => Personne::find()->count(), 'badgeOptions' => ['class' => 'bg-aqua']] ], 'items' => [ [ 'label' => 'Liste des personnes', 'url' => ['/personne'], 'icon' => 'list' ], [ 'label' => 'Ajouter une personne', 'url' => ['/personne/create'], 'icon' => 'plus' ], ], ]