我想使用切换开关来激活非活动状态,我想在yii2 curd索引页面中使用,我添加了一个小部件切换

时间:2016-11-10 09:19:17

标签: yii2

我想使用切换开关来激活非活动状态,我想在yii2 curd索引页面中使用,我添加了一个小部件切换

[

            'class' => 'yii\grid\ActionColumn',
          'template'=>  Toggle::widget(
            [

           /* 'attribute'=>'company_status',*/
                'clientEvents'=>['validate()'],
                "id"=>"stat",
                'name' => 'stat', // input name. Either 'name', or 'model' and 'attribute' properties must be specified.
                //'checked' => 'true',
                'options' => [], // checkbox options. More data html options [see here](http://www.bootstraptoggle.com)
            ]

如何更改已检查状态

0 个答案:

没有答案
相关问题