kartik-v/yii2-dropdown-x An extended bootstrap 3.x dropdown widget for Yii 2 with submenu drilldown.

extensionwidgetmenucontextmouseclick

Krajee Logo
yii2-dropdown-x Donate       kartikv

[![Stable Version](https://poser.pugx.org/kartik-v/yii2-dropdown-x/v/stable)](https://packagist.org/packages/kartik-v/yii2-dropdown-x) [![Unstable Version](https://poser.pugx.org/kartik-v/yii2-dropdown-x/v/unstable)](https://packagist.org/packages/kartik-v/yii2-dropdown-x) [![License](https://poser.pugx.org/kartik-v/yii2-dropdown-x/license)](https://packagist.org/packages/kartik-v/yii2-dropdown-x) [![Total Downloads](https://poser.pugx.org/kartik-v/yii2-dropdown-x/downloads)](https://packagist.org/packages/kartik-v/yii2-dropdown-x) [![Monthly Downloads](https://poser.pugx.org/kartik-v/yii2-dropdown-x/d/monthly)](https://packagist.org/packages/kartik-v/yii2-dropdown-x) [![Daily Downloads](https://poser.pugx.org/kartik-v/yii2-dropdown-x/d/daily)](https://packagist.org/packages/kartik-v/yii2-dropdown-x)

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.

Docs & Demo

You can see detailed docs & demos and the API code documentation on usage of the extension.

Installation

The preferred way to install this extension is through composer.

NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

Either run

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

or add

"kartik-v/yii2-dropdown-x": "dev-master"

to the require section of your composer.json file.

Usage

DropdownX

use kartik\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' => '#'],
    ],
]); 

License

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

Changelog

Change Log: yii2-detail-view

version 1.2.1

Date: 11-Jan-2021

  • Enhance & standardize php docs for new website https://docs.krajee.com.
  • Update code base as per standards.
  • Update copyright year to current.
  • (enh #12): Correct minified version.
  • (enh #11, #13): Fix PJAX.

version 1.2.0

Date: 08-Dec-2014

  • (enh #6): Revamp code for change in yii\bootstrap\Dropdown

version 1.1.0

Date: 08-Nov-2014

  • enh #5: Enhance dependency validation using common code base.
  • Set release to stable

version 1.0.0

Date: 08-May-2014

  • Initial release
  • PSR4 alias change

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.2.1 is the latest of 4 releases



BSD 3-Clause license
Stats
15 github stars & 5 github forks
331 downloads in the last day
7420 downloads in the last 30 days
645871 total downloads