Yii 2.0: yii2-jeditable

JQuery Editable extension For Yii 2
2 followers

yii2-jeditable

JQuery Editable extension For Yii 2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist powerkernel/yii2-jeditable "*"

or add

"powerkernel/yii2-jeditable": "*"

to the require section of your composer.json.

Usage

Once the extension is installed, simply use it in your code by :

<?=
    \powerkernel\jeditable\Editable::widget([
        'content' => 'Editable content here',
        'saveUrl'=>Yii::$app->urlManager->createUrl(['#save-url']),
        'clientOptions'=>[
            'tooltip'=>'click to edit',
            'indicator'=>'saving...'
        ]
    ]);
?>

More info visit: http://www.appelsiini.net/projects/jeditable

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet