2017 © Pedro Peláez
 

yii2-extension yii2-jstree

JsTree for Yii2

image

iutbay/yii2-jstree

JsTree for Yii2

  • Wednesday, December 31, 2014
  • by iutbay
  • Repository
  • 1 Watchers
  • 2 Stars
  • 96 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

JsTree for Yii2

JsTree for Yii2., (*1)

WIP..., (*2)

Installation

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

Either run, (*4)

php composer.phar require "iutbay/yii2-jstree" "*"

or add, (*5)

"iutbay/yii2-jstree" : "*"

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

https://packagist.org/packages/iutbay/yii2-jstree, (*7)

Usage

With model and ActiveForm :, (*8)

<?= $form->field($model, 'test')->widget(\iutbay\yii2jstree\JsTree::className(), [
    'items' => [
        [
            'id' => 1,
            'text' => 'Test 1',
            'children' => [
                [
                    'id' => 2,
                    'text' => 'Test 2',
                ],
            ],
        ],
        [
            'id' => 3,
            'text' => 'Test 3',
            'icon' => 'fa fa-file', // font awesome icon
        ],
    ],
]) ?>

Without model :, (*9)

<?= \iutbay\yii2jstree\JsTree::widget([
    'name' => 'test',
    'value' => '1,2',
    'items' => [
        [
            'id' => 1,
            'text' => 'Test 1',
            'children' => [
                [
                    'id' => 2,
                    'text' => 'Test 2',
                ],
            ],
        ],
        [
            'id' => 3,
            'text' => 'Test 3',
            'icon' => 'fa fa-file', // font awesome icon
        ],
    ],
]) ?>

The Versions

31/12 2014

dev-master

9999999-dev https://github.com/iutbay/yii2-jstree

JsTree for Yii2

  Sources   Download

The Requires

 

by Kevin LEVRON

extension yii2 jstree

28/12 2014

v0.1

0.1.0.0 https://github.com/iutbay/yii2-jstree

JsTree for Yii2

  Sources   Download

The Requires

 

by Kevin LEVRON

extension yii2 jstree