2017 © Pedro Peláez
 

yii2-extension yii2-easy-tree

Widget for menu displaying in tree format. Based on http://www.easyjstree.com. Optimized for yii bootstrap Nav

image

tolik505/yii2-easy-tree

Widget for menu displaying in tree format. Based on http://www.easyjstree.com. Optimized for yii bootstrap Nav

  • Friday, June 23, 2017
  • by tolik505
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,115 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Yii2 menu tree widget

Widget for menu displaying in tree format. Based on http://www.easyjstree.com Optimized for yii\bootstrap\Nav, (*1)

Installation

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)

Usage

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)

The Versions

23/06 2017

dev-master

9999999-dev

Widget for menu displaying in tree format. Based on http://www.easyjstree.com. Optimized for yii bootstrap Nav

  Sources   Download

MIT

The Requires

 

by Anatolii Pipko

extension yii2 tree menu-tree easy-tree