stansoftbg/yii2-nested-sortable
Composer 安装命令:
composer require stansoftbg/yii2-nested-sortable
包简介
**nestedSortable** is a jQuery plugin that extends jQuery Sortable UI functionalities to nested lists.
README 文档
README
nestedSortable is a jQuery plugin that extends jQuery Sortable UI functionalities to nested lists.
Forked from https://github.com/ilikenwf/nestedSortable
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist stansoftbg/yii2-nested-sortable "*"
or add
"stansoftbg/yii2-nested-sortable": "*"
to the require section of your composer.json file.
Features
- Designed to work seamlessly with the nested set model (have a look at the
toArraymethod) - Items can be sorted in their own list, moved across the tree, or nested under other items.
- Sublists are created and deleted on the fly
- All jQuery Sortable options, events and methods are available
- It is possible to define elements that will not accept a new nested item/list and a maximum depth for nested items
- The root level can be protected
- The parentship of items can be locked, just as if it was a family tree.
Usage
Once the extension is installed, simply use it in your code by :
<?= \stansoft\sortable\AutoloadExample::widget(); ?>```
统计信息
- 总下载量: 102
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-09-29