jeki-aka-zer0 / yii2-nsjqtree
Tree built using Nested Sets and jqTree.
Installs: 528
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- bower-asset/jqtree: *
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-04-29 00:34:16 UTC
README
Renders a nested tree with a jqTree.js plugin widget.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require jeki-aka-zer0/yii2-nsjqtree "1.0.x-dev"
or add
"jeki-aka-zer0/yii2-nsjqtree" : "1.0.x-dev"
to the require section of your application's composer.json
file.
Configuring
class CategoryController extends Controller { public function actions() { return [ 'dnd' => [ 'class' => jekiakazer0\nsjqtree\src\actions\DndAction::class, ], ]; } }
Usage
<?php echo jekiakazer0\nsjqtree\src\Tree::widget([ 'modelName' => Category::class, ]);