我正在使用Kartik Gridview。不幸的是,當(dāng)我創(chuàng)建一個(gè)可編輯的列時(shí),它沒有顯示輸入可編輯值的框。該框在下一行之后被隱藏,我該如何解決?發(fā)生了什么???我的期望這是我的代碼[ // type of columns 'class' => 'kartik\grid\EditableColumn', // data which is rendered from controller, use by its attribute 'attribute' => 'note', 'header' => 'Ghi chú', // vertical alignment 'vAlign' => 'middle', // horizontal alignment 'hAlign' => 'center', // edit field 'editableOptions' => function ($model, $key, $index) { return [ 'name' => 'note', // this will be sent to controller to process 'header' => 'Ghi chú', 'asPopover' => true, 'inputType' => \kartik\editable\Editable::INPUT_TEXTAREA, // appear above the text box 'beforeInput' => '<h3 style="font-weight: bold">Thêm ghi chú v? ?ng viên này</h3>', // default value in the text box 'value' => $model['note'] // in this case, $model is an array. For others, $model->employer_score ]; }, 'format' => 'raw', // format of this column will display html code // 'format' => 'html', ],
Yii2:Gridview EditableColumn 不可見彈出框
阿波羅的戰(zhàn)車
2022-06-17 14:14:48