【文件属性】:
文件名称:yii2-jstree:Yii2 的 JsTree
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-03 23:16:20
PHP
Yii2 的 JsTree
的 JsTree。
在制品...
安装
安装此帮助程序的首选方法是通过 。
要么跑
php composer.phar require "iutbay/yii2-jstree" "*"
或添加
" iutbay/yii2-jstree " : " * "
到应用程序的composer.json文件的 require 部分。
用法
使用模型和 ActiveForm :
<?= $ form -> field ( $ model , 'test' )-> widget (\iutbay\yii2jstree\ JsTree :: className (), [
'items' => [
[
'id' => 1 ,
'text' => 'Test 1' ,
'children' => [
[
'id' => 2
【文件预览】:
yii2-jstree-master
----JsTreeAsset.php(580B)
----JsTree.php(3KB)
----README.md(1KB)
----composer.json(436B)