Twitter bootstrap Yii创建的ajaxButton中的引导图标

Twitter bootstrap Yii创建的ajaxButton中的引导图标,twitter-bootstrap,yii,Twitter Bootstrap,Yii,有没有办法在Yii中创建带有引导图标的ajaxButton?我找到了答案 我找到了答案 $this->widget('bootstrap.widgets.TbButton', array( 'buttonType' => 'ajaxButton', 'label' => 'Label Here', 'type' => 'danger',

有没有办法在Yii中创建带有引导图标的ajaxButton?

我找到了答案

我找到了答案

    $this->widget('bootstrap.widgets.TbButton', array(
                 'buttonType' => 'ajaxButton',
                 'label' => 'Label Here',
                 'type' => 'danger',
                 'icon' => 'play white',
                 ...
                 'ajaxOptions' => array(
                     'success' => '...',
                     'error' => '...',
                     'beforeSend' => '...',
                 )
             ));