2017-25 © Pedro Peláez
 

yii2-widget yii2-nested-sets-editor

Nested set editor using jquery.nestable plugin for Yii 2

image

voskobovich/yii2-nested-sets-editor

Nested set editor using jquery.nestable plugin for Yii 2

  • Tuesday, December 6, 2016
  • by voskobovich
  • Repository
  • 2 Watchers
  • 12 Stars
  • 197 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Yii2 Nested Sets Editor

This behavior soon will be DEPRECATED.
See the new version Yii2 Tree Manager., (*1)

About

Editor nested set using jquery.nestable plugin., (*2)

Реализует полный набор CRUD операций для узлов дерева., (*3)

Внимание!

Есть улучшеная версия пакета для управление деревом - yii2-tree-manager., (*4)

Installation

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

Either run, (*6)

php composer.phar require --prefer-dist voskobovich/yii2-nested-sets-editor "~1.0.0"

or add, (*7)

"voskobovich/yii2-nested-sets-editor": "~1.0.0"

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

Внимание!

В расширении наследуется и расширяется behavior Nested Sets Behavior for Yii 2.
Всю информацию по настройке поведения можно взять на странице., (*9)

Но для работы виджета нужно использовать реализацию поведения из этого пакета!, (*10)

Usage

  1. Подключите behavior из этого пакета к своей модели и сконфигурируйте как сказано в документации.
public function behaviors()
{
    return [
        'nestedSetsBehavior' => 'voskobovich\nestedsets\behaviors\NestedSetsBehavior',
    ];
}
  1. Подключите в контроллер дополнительные actions
public function actions()
{
    return [
        'moveNode' => [
            'class' => 'voskobovich\nestedsets\actions\MoveNodeAction',
            'modelClass' => 'models\ModelName',
        ],
        'deleteNode' => [
            'class' => 'voskobovich\nestedsets\actions\DeleteNodeAction',
            'modelClass' => 'models\ModelName',
        ],
        'updateNode' => [
            'class' => 'voskobovich\nestedsets\actions\UpdateNodeAction',
            'modelClass' => 'models\ModelName',
        ],
        'createNode' => [
            'class' => 'voskobovich\nestedsets\actions\CreateNodeAction',
            'modelClass' => 'models\ModelName',
        ],
    ];
}
  1. Выведите виджет в удобном месте
<?= \voskobovich\nestedsets\widgets\nestable\Nestable::widget([
    'modelClass' => 'models\ModelName',
]) ?>

The Versions

06/12 2016

dev-master

9999999-dev https://github.com/voskobovich/yii2-nested-sets-editor

Nested set editor using jquery.nestable plugin for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 widget editor nested sets nestable

12/03 2016

v1.0.1

1.0.1.0 https://github.com/voskobovich/yii2-nested-sets-editor

Nested set editor using jquery.nestable plugin for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 widget editor nested sets nestable

14/01 2016

v1.0.0

1.0.0.0 https://github.com/voskobovich/yii2-nested-sets-editor

Nested set editor using jquery.nestable plugin for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 widget editor nested sets nestable