Skip to content

claudejanz/yii2-nested

Repository files navigation

Nested

Latest Stable Version Total Downloads Latest Unstable Version License

nested for jquery with action

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist claudejanz/yii2-nested "*"

or add

"claudejanz/yii2-nested": "*"

to the require section of your composer.json file.

Usage

NestedSortableAction

public function actions()
{
    return [
        'save-sortable' => [
            'class' => 'claudejanz\yii2nested\NestedSortableAction',
            //'scenario'=>'editable',  //optional
            'modelclass' => Page::className(),
        ],

    ];
}

NestedSortable

echo NestedSortable::widget([
    'model' => Page::className(),
    'url' => '/pages/save-sortable',
    'expand' => true,
    'pluginOptions' => [
        'maxDepth' => 2
    ]
]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published