Ajax/semantic/html/base/traits/LabeledIconTrait.php
public function addIcon($icon,$before=true,$labeled=false){
		$iconO=$icon;
		if(\is_string($icon)){
			$iconO=new HtmlIcon("icon-".$this->identifier, $icon);
		}
		if($labeled!==false){
			$direction=($before===true)?Direction::LEFT:Direction::RIGHT;
			$this->addToProperty("class", $direction." labeled icon");
			$this->tagName="div";
		}
		$this->addContent($iconO,$before);
		return $iconO;
	}
public function addIcon($icon,$before=true,$labeled=false){
		$iconO=$icon;
		if(\is_string($icon)){
			$iconO=new HtmlIcon("icon-".$this->identifier, $icon);
		}
		if($labeled!==false){
			$direction=($before===true)?Direction::LEFT:Direction::RIGHT;
			$this->addToProperty("class", $direction." labeled icon");
			$this->tagName="div";
		}
		$this->addContent($iconO,$before);
		return $iconO;
	}
public function addIcon ( $ icon , $ before = true , $ labeled = false ) { $ iconO = $ icon ; if ( \ is_string ( $ icon ) ) { $ iconO = new HtmlIcon ( "icon-" . $ this -> identifier , $ icon ) ; } if ( $ labeled !== false ) { $ direction = ( $ before === true ) ? Direction :: LEFT : Direction :: RIGHT ; $ this -> addToProperty ( "class" , $ direction . " labeled icon" ) ; $ this -> tagName = "div" ; } $ this -> addContent ( $ iconO , $ before ) ; return $ iconO ; }
Adds an icon before or after
@param string|HtmlIcon $icon
@param boolean $before
@param boolean $labeled
@return \Ajax\semantic\html\elements\HtmlIcon
Adds an icon before or after