PHP code example of dixonstarter / yii2-title-action
1. Go to this page and download the library: Download dixonstarter/yii2-title-action library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dixonstarter / yii2-title-action example snippets
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'tableOptions'=>['class'=>'table table-hover'],
'columns' => [
[
'attribute'=>'title',
'linkStyle'=>'buttongroup', // default, buttongroup
'labelStyle'=>'iconText' // icon,text,iconText
'class'=>'\dixonstarter\grid\TitleActionColumn',
],
],
]);