P
P
Pavel Gogolinsky2014-07-23 14:42:38
Yii
Pavel Gogolinsky, 2014-07-23 14:42:38

How to make a submenu for an item from a dropdown menu on yiibooster?

As in the picture, the "Image" item has its own submenu
bd6676969ecf433da4c17b90a0209155.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2014-07-23
@fornit1917

Specify them in the items field next to the "Images" item

P
Pavel Gogolinsky, 2014-07-23
@gogolinsky

Here is the menu, it doesn't work like that

$this->widget(
    'booster.widgets.TbNavbar',
    array(
        'type' => null,
        'brand' => 'sitel.ru',
        'brandUrl' => '/',
        'items' => array(
            array(
                'class' => 'booster.widgets.TbMenu',
                'type' => 'navbar',
                'items' => array(
                    array(
                        'icon' => 'home',
                        'label' => 'Первый пункт',
                        'url' => '#',
                        'items' => array(
                            array(
                                'label' => 'Первый подпункт',
                                'url' => '#',
                            ),
                            array(
                                'label' => 'Второй подпункт',
                                'url' => '#',
                            ),
                        ),
                    ),
                ),
            ),
...
);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question