switch button in gridview

i have toggle switch in grid view

below is my code

<?= GridView::widget([

    'dataProvider' =&gt; &#036;dataProvider,


    'filterModel' =&gt; &#036;searchModel,


    'columns' =&gt; [


        ['class' =&gt; 'yii&#092;grid&#092;SerialColumn'],





        'title',


        [


'attribute' =&gt; 'Activate ',


   'format' =&gt; 'raw',


'value' =&gt; function (&#036;model) {                      


         return  SwitchInput::widget([


            'name' =&gt; &#036;model-&gt;title,


            'id'=&gt;&#036;model-&gt;title.&#036;model-&gt;id,


            'value'=&gt;(&#33;&#036;model-&gt;status),


            'pluginOptions' =&gt; [


            'size' =&gt; 'medium',


            'onColor' =&gt; 'success',


            'offColor' =&gt; 'danger',


            'onText'=&gt;'activate',


             'offText' =&gt; 'deactivate',


            ]


            ]);         


        },


],


[


'class' =&gt; 'yii&#092;grid&#092;ActionColumn',


'template'=&gt;'{view}',


],





    ],


]); ?&gt;

now i want to call controller action when i change activate to deactivate or vice versa,

i can do with js but i need to do this with yii2 method controller/action call

plz help me