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']],
],
]);
Categories: HINTS (tehnice) |
Leave a Reply
[TOP]