dev-master
9999999-devWidget for menu displaying in tree format. Based on http://www.easyjstree.com. Optimized for yii bootstrap Nav
MIT
The Requires
by Anatolii Pipko
extension yii2 tree menu-tree easy-tree
Widget for menu displaying in tree format. Based on http://www.easyjstree.com. Optimized for yii bootstrap Nav
Widget for menu displaying in tree format. Based on http://www.easyjstree.com Optimized for yii\bootstrap\Nav, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist tolik505/yii2-easy-tree "*"
or add, (*4)
"tolik505/yii2-easy-tree": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
php
= \tolik505\tree\TreeWidget::widget([
'items' => [
[
'label' => Yii::t('app', 'Users'),
'items' => [
[
'label' => Yii::t('app', 'Users'),
'url' => ['/user/admin/index'],
],
[
'label' => Yii::t('app', 'Location'),
'items' => [
[
'label' => Yii::t('app', 'Region'),
'url' => ['/location/region/index'],
],
[
'label' => Yii::t('app', 'City'),
'url' => ['/location/city/index'],
],
]
],
]
],
[
'label' => Yii::t('app', 'Translations'),
'items' => [
[
'label' => Yii::t('app', 'Translations'),
'url' => ['/i18n/default/index'],
],
[
'label' => Yii::t('app', 'Language'),
'url' => ['/language/language/index'],
],
],
],
],
'options' => [
'minOpenLevels' => 5
]
]); ?>
, (*7)
Widget for menu displaying in tree format. Based on http://www.easyjstree.com. Optimized for yii bootstrap Nav
MIT
extension yii2 tree menu-tree easy-tree