title: How to call confirm dialog on button Yii2 Action column?
body: <p>I am using Kartik/grid. I have this button in action column.How can I have a confirm dialog on clicking it, like in delete ? </p>
  
  <pre><code> [
                  'class' =&gt; 'kartik\grid\ActionColumn',
                  'template'=&gt;'{statement}',
                  'controller'=&gt;'statement',
                  'buttons'  =&gt; [
                      'pay' =&gt; function($url,$model) {
  
                                if($model-&gt;sum_balance&lt;&gt;0) {
                                  return Html::a('Statement', $url, ['class'=&gt;'pay btn btn-primary','data-pjax' =&gt; '0']);
                                } else {
                                  return null;
                                }                          
                      },
  
                  ]
              ],
  </code></pre>