Skip to content

HeavyDots/yii-tri-state-checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is a three state checkbox input widget for Yii.

How to use:

  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:

    widget('CbTriStateCheckbox', array('model'=>$model,'attribute'=>'field_name')); ?>

Credits:

Inspired in this blog post: https://giweb.wordpress.com/2009/12/01/three-state-tri-state-checkboxes-in-html/

About

Three state checkbox input widget for Yii

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published