2017 © Pedro Peláez
 

yii2-extension yii2-jstree

Widget for Yii Framework 2.0 to use JsTree

image

shirase55/yii2-jstree

Widget for Yii Framework 2.0 to use JsTree

  • Tuesday, July 26, 2016
  • by shirase
  • Repository
  • 1 Watchers
  • 0 Stars
  • 388 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

yii2-jstree

Widget for Yii Framework 2.0 to use JsTree, (*1)

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads Latest Unstable Version License, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist thiagotalma/yii2-jstree "~1.0.0"

or add, (*5)

"thiagotalma/yii2-jstree": "~1.0.0"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

<?=  \talma\widgets\JsTree::widget([
    'attribute' => 'attribute_name',
    'model' => $model,
    'core' => [
        'data' => $data
        ...
    ],
    'plugins' => ['types', 'dnd', 'contextmenu', 'wholerow', 'state'],
    ...
]); ?>

Usage without a model (you must specify the "name" attribute) :, (*8)

<?=  \talma\widgets\JsTree::widget([
    'name' => 'js_tree',
    'core' => [
        'data' => $data
        ...
    ],
    'plugins' => ['types', 'dnd', 'contextmenu', 'wholerow', 'state'],
    ...
]); ?>

If you wanna use the contextmenu plugin and you are having issues with a not appearing menu, you should add the following css to your site:, (*9)

.vakata-context {
    z-index:999 !important;
}

The Versions

26/07 2016

dev-master

9999999-dev https://github.com/thiagotalma/yii2-jstree-widget

Widget for Yii Framework 2.0 to use JsTree

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 form widget jstree

26/07 2016

1.0.1

1.0.1.0 https://github.com/thiagotalma/yii2-jstree-widget

Widget for Yii Framework 2.0 to use JsTree

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 form widget jstree

02/09 2015

v1.0.0

1.0.0.0 https://github.com/thiagotalma/yii2-jstree-widget

Widget for Yii Framework 2.0 to use JsTree

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 form widget jstree