2017 © Pedro Peláez
 

yii2-extension yii2-jeditable

image

harrytang/yii2-jeditable

  • by modernkernel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 565 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 0 Versions
  • 0 % Grown

The README.md

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

The Versions