dev-master
9999999-devNested Sortable based in nestedSortable jQuery Plugin
BSD-3-Clause
The Requires
by MarcioCamello
extension yii2 nested mcms
Nested Sortable based in nestedSortable jQuery Plugin
Nested Sortable based in nestedSortable jQuery Plugin, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist marciocamello/yii2-mcms-nested "*"
or add, (*4)
"marciocamello/yii2-mcms-nested": "*"
to the require section of your composer.json
file., (*5)
echo \mcms\nested\NestedSortable::widget([ 'model' => Menu::className(), 'url' => 'nested/save-sortable', 'expand' => true, 'pluginOptions' => [ 'maxDepth' => 2 ] ]);
public function actions() { return [ 'save-sortable' => [ 'class' => 'mcms\nested\NestedSortableAction', //'scenario'=>'editable', //optional 'modelclass' => Categories::className(), ], ]; }
Nested Sortable based in nestedSortable jQuery Plugin
BSD-3-Clause
extension yii2 nested mcms