Core/Html/Controls/UiButton.php
public function setIcon($icon)
    {
        $this->icon = $this->factory->create('Fontawesome\Icon');
        $this->icon->setIcon($icon);

        return $this;
    }
public function setIcon($icon)
    {
        $this->icon = $this->factory->create('Fontawesome\Icon');
        $this->icon->setIcon($icon);

        return $this;
    }
public function setIcon ( $ icon ) { $ this -> icon = $ this -> factory -> create ( 'Fontawesome\Icon' ) ; $ this -> icon -> setIcon ( $ icon ) ; return $ this ; }
Set an icon from fontawesome icon.
Use only the name without the leading "fa-"

@param string $icon

@return \Core\Html\controls\UiButton
Set an icon from fontawesome icon . Use only the name without the leading fa -