yii-tri-state-checkbox Three state checkbox input widget for Yii

  1. Requirements
  2. Usage
  3. Resources

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')); ?>

Resources