toir427/yii2-sortablejs
Composer 安装命令:
composer require toir427/yii2-sortablejs
包简介
Yii2 implementation of SortableJS extension. To create and reorder lists with drag-and-drop. For use with modern browsers and touch devices.
关键字:
README 文档
README
This is an Yii framework 2.0 implementation of SortableJS extension. To create and reorder lists with drag-and-drop. For use with modern browsers and touch devices.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require toir427/yii2-sortablejs
or add
"toir427/yii2-sortablejs": "^1.0"
to the require section of your composer.json file.
Usage
use toir427\sortablejs\Sortable; <?= Sortable::widget([ 'items' => [ 'Item 1', ['content' => 'Item2'], [ 'content' => 'Item3', 'options' => ['class' => 'text-danger'], ], ], 'clientOptions' => [ 'selectedClass' => 'selected', 'fallbackTolerance' => 3, 'animation' => 150, ], ]); ?>
Examples
More Examples.
Configurations
For this extension configuration see SortableJS Options.
License
yii2-sortablejs is released under the Apache 2.0 License. See the LICENSE.md for details.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-10-30