This is a three state checkbox input widget for Yii.
Requirements ¶
No special requirements.
Usage ¶
1) Copy to extensions or widgets, as you wish. Then import it either manually or by adding to main.php config file imports.
Yii::import('ext.yii-tri-state-checkbox.*');
2) Call it in your views by providing model and attribute:
<?php $this->widget('CbTriStateCheckbox', array('model'=>$model,'attribute'=>'field_name')); ?>
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.