Editable widget IMPORTANT INFO
print Editable::widget([
    'name'                 => "theName",//label_chk_{$baseId}
    'value'                => $treeItem['name'],
    'size'                 => 'md',
    'inputType'            => Editable::INPUT_TEXT,
    'format'               => Editable::FORMAT_LINK,
    'editableValueOptions' => ['class' => 'kv-editable-link'],
    'asPopover'            => TRUE,
    /*
    * MANDATORY , in our case: always set the formClass to yii\bootstrap\ActiveForm
    * otherwise, formOptions is ignored
    */
    'formClass'							=> 'yii\bootstrap\ActiveForm',
    'formOptions'          => [
        'method' => 'post',
        'action' => ['user/initialize-balance', 'saveAnalyticName' => 1, 'cacId' => $treeItem['id']],

    ],

]);

 

About

Software Development Manager, Architect

Categories: HINTS (tehnice) |

Leave a Reply

Your email address will not be published. Required fields are marked *

[TOP]