18 parent::__construct(
$identifier,
"i",
"icon", NULL);
32 if (isset($this->_icon)) {
90 public function asLink($href=NULL,$target=NULL) {
94 $_target=
"target='{$target}'";
95 $this->
wrap(
"<a href='" . $href .
"' {$_target}>",
"</a>");
111 if ($inverted !==
false)
112 $invertedStr=
" inverted";
113 return $this->
addToProperty(
"class",
"bordered" . $invertedStr);
124 public function addLabel($label, $before=
false, $icon=NULL) {
128 $this->
wrap(
"", $label);
136 return $result->addLabel($label);
addToMember(&$name, $value, $separator=' ')
removePropertyValue($name, $value)
Base class for Semantic double elements.
addToProperty($name, $value, $separator=" ")
static label($identifier, $icon, $label)
setFitted()
An icon can be fitted, without any space to the left or right of it.
setIcon($icon)
sets the icon
setBordered($inverted=false)
setRotated($sens="clockwise")
asLink($href=NULL, $target=NULL)
icon formatted as a link
setFlipped($sens="horizontally")
__construct($identifier, $icon)
asLoader()
Icon used as a simple loader.
addToIcon($icon)
adds an icon in icon element
addLabel($label, $before=false, $icon=NULL)
Adds a label to the element.