1. Christoffer Niska
  2. yii-bootstrap
  3. Issues
Issue #227 new

icon right in button

created an issue

Hi, TbButton widget not show an icon-right in button.

I'm using this code in TbButton.php and for now i solved.

public $icon_right;

if (isset($this->icon_right))
    if (strpos($this->icon_right, 'icon') === false)
    $this->icon_right = 'icon-'.implode(' icon-', explode(' ', $this->icon_right));
    $this->label = $this->label.' <i class="'.$this->icon_right.'"></i>';

Comments (0)

  1. Log in to comment