feri baco
feri baco

Reputation: 635

Bootstrap icon in ajaxButton created by Yii

Is there any way how to create ajaxButton with bootstrap icon in Yii?

Upvotes: 1

Views: 706

Answers (1)

feri baco
feri baco

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

Related Questions