代码如下:
[ 'label' => 'Executive Name', 'attribute' => 'cs.first_name', 'visible' => '0', ],
如果还需要放入条件:
[ 'label' => 'Executive Name', 'attribute' => 'cs.first_name', 'visible' => function(){ if (condition) { return '1'; } else { return '0'; } } ],
代码如下:
[ 'label' => 'Executive Name', 'attribute' => 'cs.first_name', 'visible' => '0', ],
如果还需要放入条件:
[ 'label' => 'Executive Name', 'attribute' => 'cs.first_name', 'visible' => function(){ if (condition) { return '1'; } else { return '0'; } } ],
转载于:https://www.cnblogs.com/ilovethis/p/6072903.html