how to change GridView update and delete button for all gridview

I would like to make Grid View Update and Delete prettier for all GridView I use.

Here is my custom buttons code


[

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

    'template' => '{update} {delete}',

    'buttons' => [

        'update' => function ($url, $model, $key) {

            return  Html::a('Update', $url, ['class' => 'bg-blue label']);

        },

        'delete' => function ($url, $model, $key) {

            return  Html::a('Delete', $url, ['class' => 'bg-red label']);

        }

    ]

],

I want to apply the styling to all grid view but don’t want to copy and paste to all grid view which violate DRY principle. Any suggestions?

Extend gridView widget or ActionButton class and use your extended class.