Sunday 9 October 2016

Yii Grid View Custom Action Link

             [
        'class' => 'yii\grid\ActionColumn',
        'template' => '{view} {update} {delete}',
        'buttons' => [
                'view' => function ($url,$model) {
                        return Html::a(
                                '<span class="btn btn-success btn-rounded btn-xs">View</span>',
                                $url);
                },
                'update' => function ($url,$model,$key) {
                                return Html::a('<span class="btn btn-primary btn-rounded btn-xs">Edit</span>', $url);
                },
                          'delete' => function ($url,$model,$key) {
                                return Html::a('<span class="btn btn-danger btn-rounded btn-xs">Delete</span>', $url, [ 'data' => [
                'confirm' => "Are you sure you want to delete profile?",
                'method' => 'post',
            ],]);
                },
        ],
],

1 comment:

  1. The best casino bonus codes, bonuses, promo codes
    Welcome to 논산 출장샵 MCD Casino, where 안양 출장마사지 you will find hundreds of exciting casino 수원 출장마사지 bonus codes and free spins. Click 통영 출장안마 here for 광양 출장안마 all the latest MCD Casino

    ReplyDelete

Setup VueJS in Laravel

Setup VueJS in Laravel 1. You will need to install javascript dependencies by running the following command on your terminal.      npm i...