I’m newbe to yii, so maybe ths is silly question.
How can I set "on" state
$this->widget('yiiwheels.widgets.switch.WhSwitch', array(
'onColor' => 'success',
'offColor' => '',
'htmlOptions' => array(
'name' => 'MyName',
)
)
);
...
fryser_d
(Fryser D)
2
$this->widget('yiiwheels.widgets.switch.WhSwitch', array(
'name' => 'MyName',
'value' => true,
'onColor' => 'success',
'offColor' => '',
);
$this->widget('yiiwheels.widgets.switch.WhSwitch', array(
'model' => $model,
'attribute' => "myAttribute",
'onColor' => 'success',
'offColor' => '',
);