Reputation: 635
Is there any way how to create ajaxButton with bootstrap icon in Yii?
Upvotes: 1
Views: 706
Reputation: 635
I've found answer here
$this->widget('bootstrap.widgets.TbButton', array(
'buttonType' => 'ajaxButton',
'label' => 'Label Here',
'type' => 'danger',
'icon' => 'play white',
...
'ajaxOptions' => array(
'success' => '...',
'error' => '...',
'beforeSend' => '...',
)
));
Upvotes: 1