yii2-jeditable
JQuery Editable extension For Yii 2, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist powerkernel/yii2-jeditable "*"
or add, (*4)
"powerkernel/yii2-jeditable": "*"
to the require
section of your composer.json., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
<?=
\powerkernel\jeditable\Editable::widget([
'content' => 'Editable content here',
'saveUrl'=>Yii::$app->urlManager->createUrl(['#save-url']),
'clientOptions'=>[
'tooltip'=>'click to edit',
'indicator'=>'saving...'
]
]);
?>