public function setIcon($icon)
    {
        if ($icon[0] != '<') {
            $icon = '<i class="icon-'.$icon.'"></i>';
        }
        $this->template->trySetHTML('icon', $icon);

        return $this;
    }
public function setIcon($icon)
    {
        if ($icon[0] != '<') {
            $icon = '<i class="icon-'.$icon.'"></i>';
        }
        $this->template->trySetHTML('icon', $icon);

        return $this;
    }
public function setIcon ( $ icon ) { if ( $ icon [ 0 ] != '<' ) { $ icon = '<i class="icon-' . $ icon . '"></i>' ; } $ this -> template -> trySetHTML ( 'icon' , $ icon ) ; return $ this ; }
Sets icon for button.

@param string $icon Icon CSS class

@return $this

@todo Implement this trough Icon view
Sets icon for button .