PHP code example of vsk / yii2-editablecolumn

1. Go to this page and download the library: Download vsk/yii2-editablecolumn library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vsk / yii2-editablecolumn example snippets


    public function rules()
    {
        return [
            ...
            [['email'], 'email', 'on' => [self::SCENARIO_DEFAULT, EditableColumn::MODEL_SCENARIO_EDITABLE_COLUMN]],
            ...
         ];
    }



 echo  \vsk\editableColumn\EditableColumn::widget([
                'model'=>$model,
                'attribute' => 'email',
                'format' => \kartik\editable\Editable::FORMAT_BUTTON,
                'asPopover' => true,
                'type'=>'success',
                'size'=>'lg',
            ]);