use yh\mdc\components\CheckBox; echo CheckBox::one('Remember me', ['value' => true]) ->render(); echo CheckBox::one('Checkbox1', ['indeterminate' => true]) ->setId('checkbox1') ->render(); echo CheckBox::one('Checkbox2', ['enabled' => false]) ->setId('checkbox1') ->render();
app.controls.item('checkbox1').indeterminate = false; app.controls.item('checkbox1').checked = true; app.controls.item('checkbox2').indeterminate = true;