当我尝试使用“kartik\editable\Editable::widget”和“ExportMenu::widget”在 excel 中导出数据时,“编辑”和“关闭”符号也会导出到我的 excel 中。
导出 Excel 时如何删除“编辑”和“关闭”符号?
return kartik\editable\Editable::widget([
'header'=>false,
'name' => 'status',
'size'=>'sm',
'type'=>'primary',
'placement'=>'right',
'containerOptions'=>['class' => 'kv-sticky-column'],
'contentOptions'=>['class' => 'kv-sticky-column'],
'inputType'=>kartik\editable\Editable::INPUT_TEXT,
'value'=>$location->getSummerValue($location['id']),
'editableValueOptions'=>['asPopover' => false],
'formOptions'=>[
'method' => 'post',
'id' => 'gv1_summer_'.$i.'_form_name',
'action' => ['/forward-price-curve/save-summer?location_id='.$location['id']]
],
'options' => [
'id' => 'gv1_summer_'.$i.'_form_name',
'pluginOptions'=>[
'autoclose'=>true,
'asPopover' => false,
]
],
'submitButton' => [
'class' => 'btn btn-sm btn-primary',
'icon' => '<i class="glyphicon glyphicon-floppy-save"></i>',
],
]);