1. Christoffer Niska
  2. yii-bootstrap
  3. Pull requests

Pull requests

#12 Merged
Repository
dirx
Branch
bootstrap-2.0.1
Repository
crisu83
Branch
bootstrap-2.0.1

Support for icon paramater in buttons array in BootButtonColumn

Author
  1. Dirk Adler
Reviewers
Description

Beside setting icon via viewButtonIcon, updateButtonIcon and deleteButtonIcon you also may set it via the buttons parameter.

Example:

... array( 'class' => 'BootButtonColumn', 'buttons' => array( 'view' => array( 'options' => array( 'class' => 'btn', 'title' => 'View Settings' ), 'label' => null, ), 'update' => array( 'options' => array( 'class' => 'btn btn-primary', 'title' => 'Update Settings', ), 'icon' => 'cog white', 'label' => null, ), 'delete' => array( 'options' => array( 'class' => 'btn btn-danger', 'title' => 'Delete', ), 'icon' => 'remove white', 'label' => null, ), ), 'htmlOptions' => array('class' => 'span2 pull-right'), ),

Comments (1)