Label for ActionColumn


(Ressac) #1

Hi all,

i need to create a label for ActionColumn in GridView::widget , but i’m lost, need some help…

here is what i’m doing


    GridView::widget([

        'dataProvider' => $dataProvider,

        'filterModel' => $searchModel,

        'columns' => [

            'name',

            'username',

            'email:email',

            [

                'label' => 'Operaciones',

                'value' =>

                [

                    'class' => ActionColumn::className(),

                    'template' => '{view}{delete}'

                ]

            ],

        ],

    ]);

i tried a lot of things but always getting some type of exception

thx


(yatinmistry5130@gmail.com) #2

User "header"


['class' => 'yii\grid\ActionColumn',

          'header'=>"Actions"

],




(Manojkiran) #3

Thanks it worked for me in Yii 2