An extended bootstrap dropdown widget for Yii 2 with submenu drilldown.

Installs: 5 569

Dependents: 4

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 5


1.0.6 2016-05-08 14:17 UTC

This package is auto-updated.

Last update: 2024-05-16 15:05:06 UTC


An extended bootstrap dropdown widget for Yii Framework 2 with submenu drilldown. This widget extends the \yii\bootstrap\Dropdown widget with some additional controls and adds CSS and JS for enabling a submenu drilldown. The dropdown menu style is optimized for both desktop and mobile devices. The drilldown is triggered on active instead of hover so that it works equally well on mobile devices.


The preferred way to install this extension is through composer.

Note: You must set the minimum-stability to dev in the composer.json file in your application root folder before installation of this extension.

Either run

$ php composer.phar require bariew/yii2-dropdown-x "dev-master"

or add

"bariew/yii2-dropdown-x": "dev-master"

to the require section of your composer.json file.



use bariew\dropdown\DropdownX;
echo DropdownX::widget([
    'items' => [
        ['label' => 'Action', 'url' => '#'],
        ['label' => 'Submenu', 'items' => [
            ['label' => 'Action', 'url' => '#'],
            ['label' => 'Another action', 'url' => '#'],
            ['label' => 'Something else here', 'url' => '#'],
        ['label' => 'Something else here', 'url' => '#'],
        '<li class="divider"></li>',
        ['label' => 'Separated link', 'url' => '#'],


yii2-dropdown-x is released under the BSD 3-Clause License. See the bundled for details.