Menu widget

You may see this widget right here in left sidebar. It supports icons, badges and submenus. Also it has a possibility to collapse.

Using example below.

 Code

<?=
\yiister\adminlte\widgets\Menu::widget(
    [
        "items" => [
            ["label" => "Home", "url" => "/", "icon" => "home"],
            ["label" => "Layout", "url" => ["site/layout"], "icon" => "files-o"],
            ["label" => "Error page", "url" => ["site/error-page"], "icon" => "close"],
            [
                "label" => "Widgets",
                "icon" => "th",
                "url" => "#",
                "items" => [
                    ["label" => "Menu", "url" => ["site/menu"]],
                    ["label" => "Boxes", "url" => ["site/boxes"]],
                ],
            ],
            [
                "label" => "Badges",
                "url" => "#",
                "icon" => "table",
                "items" => [
                    [
                        "label" => "Default",
                        "url" => "#",
                        "icon" => "table",
                        "badge" => "123",
                    ],
                    [
                        "label" => "Red",
                        "url" => "#",
                        "icon" => "table",
                        "badge" => "123",
                        "badgeOptions" => [
                            "class" => \yiister\adminlte\components\AdminLTE::BG_BLUE_ACTIVE,
                        ],
                    ],
                ],
            ],
            [
                "label" => "Multilevel",
                "url" => "#",
                "icon" => "table",
                "items" => [
                    [
                        "label" => "Second level",
                        "url" => "#",
                    ],
                    [
                        "label" => "Second level",
                        "url" => "#",
                        "icon" => "table",
                        "items" => [
                            [
                                "label" => "Default",
                                "url" => "#",
                            ],
                            [
                                "label" => "Red",
                                "url" => "#",
                                "icon" => "table",
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ]
)
?>