modernkernel/yii2-jeditable

This package is abandoned and no longer maintained. The author suggests using the powerkernel/yii2-jeditable package instead.

Jquery Editable extension for Yii 2

Installs: 168

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Language:JavaScript

Type:yii2-extension

1.0.0 2017-12-04 04:48 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:00:01 UTC


README

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...'
        ]
    ]);
?>