Yii Framework Forum: Yii Bootstrap 1.2.0 Btn-Group Fail - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Bootstrap 1.2.0 Btn-Group Fail Rate Topic: -----

#1 User is offline   SimonDotWeb 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 05-November 12

Posted 05 November 2012 - 01:30 PM

The button group in the new YiiBootstrap 1.2.0 don't work egual 1.1.0 version.
When add a custom class togheter the class btn-group, the menù under the button don't show.
In YiiBootstrap 1.1.0 work fine.

Example

<div class="btn-group"></div> -->work
<div class="btn-group myclass"></div> -->don't work
0

#2 User is offline   Huber A. Salazar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 09-November 12
  • Location:colombia

Posted 09 November 2012 - 08:16 PM

Si es del yii-bootstrap 1.2.0 del que hablas lo puedes hacer así:




<?php $this->widget('bootstrap.widgets.TbButtonGroup', array(
'buttons'=>array(
array('label'=>'Button 1', 'url'=>'#'),//esto serán los botones internos
array('label'=>'Button 2', 'url'=>'#'),
array('label'=>'Button 3', 'url'=>'#'),
array('label'=>'Button 4', 'url'=>'#'),
),
)); ?>

o de lo contrario puedes hacerlo así:

<div class="btn-group">
<button class="btn btn-primary">Button 1</button>
<button class="btn">Button 2</button>
<button class="btn">Button 3</button>
</div>
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users