删除ActionColumn的不需要的标头

时间:2018-04-11 19:14:49

标签: yii2 kartik-v

我正在使用kartik的ActionColumn,它会创建不需要的标头(请参阅我的附件)enter image description here

这个标题无处编码!! 任何想法如何删除它? 这是代码

[
    'class' => 'kartik\grid\ActionColumn',
    'dropdown' => false,
    'headerOptions' => ['width' => '80'],
    'vAlign' => 'top',
    'template' => '{rename_folder}<br>{create_folder}',
    'buttons' => [
        'create_folder' => function ($model) {
            $bez = "erzeugen";
            return Html::a('<span class="glyphicon glyphicon-folder-close"></span>', ['/mail/mail-eingang/createfolder', 'bez' => $bez], ['title' => 'Ordner erzeugen', 'data' => ['pjax' => '0']]);
        },
        'rename_folder' => function ($model) {
            $bez = "umbenennen";
            return Html::a('<span class="fa fa-folder-open"></span>', ['/mail/mail-eingang/renamefolder', 'bez' => $bez], ['title' => 'Ordner umbenennen', 'data' => ['pjax' => '0']]);
        },
],

1 个答案:

答案 0 :(得分:1)

如果您要删除标题,请将此添加到您的列配置:

'header' => '',