Yii 1.1: bootstrap-select

Bootstrap Select
10 followers

A custom select for @twitter Bootstrap using button dropdown.

Requirements

Yii 1.1

Usage

Usage without model

<?php $this->widget('ext.bootstrap-select.TbSelect',array(
       'name' => 'country_id',
       'data' => Country::listData(),
       'htmlOptions' => array(
           //'multiple' => true,
       ),
)) ?>

Usage with model

<?php $this->widget('ext.bootstrap-select.TbSelect',array(
       'model' => $user,
       'attribute' => 'country',
       'data' => Country::listData(),
       'htmlOptions' => array(
           //'multiple' => true,
       ),
)); ?>

Resources

...external resources for this extension...

Total 1 comment

#18188 report it
robsch at 2014/09/24 02:57am
Advertising?

Bootstrap Select is fine. But those other two resource links could be removed.

Leave a comment

Please to leave your comment.

Create extension