How Can I Make A Tbbuttongroup Tbbutton Disabled?

tried the following options but still having no luck disabling a button in the button group.





'disabled' => true

'disabled' => 'disabled'

'disabled'


$htmloptions = array('disabled' => true)

$htmloptions = array('disabled' => 'disabled')

$htmloptions = array('disabled')




anyone done it before?

Haven’t tested it, but you need to set the class to ‘disabled’.




'htmlOptions => array(

    'class' => 'disabled'

)



http://twitter.githu…ss.html#buttons

Matt

That worked, but only on the button, not the button group. This is what I ended up with…





		$this->widget('bootstrap.widgets.TbButtonGroup', array(

			'buttons'=>array(

				array('icon'=>'icon-plus','htmlOptions'=>array('class'=>'disabled'),),

				array('icon'=>'icon-eye-open','htmlOptions'=>array('class'=>'disabled'),),

				array('icon'=>'icon-map-marker','htmlOptions'=>array('class'=>'disabled'),),

			),

		));






Notice that the url value has to be removed otherwise the button still works.