49 $item->addToProperty(
"class",
"active");
56 $itemO=
new HtmlMenuItem(
"item-" . $this->identifier .
"-" . \
sizeof($this->content) , $item);
57 $itemO->addClass(
"no-active");
65 $item->addToPropertyCtrl(
"class",
"item", array (
"item" ));
82 $item->setProperty(
"data-page", $number);
98 $count=$this->
count();
100 if (isset($header)) {
101 $headerItem=
new HtmlSemDoubleElement(
"item-header-" . $this->identifier .
"-" . $count,
"div",
"header");
102 $headerItem->setContent($header);
103 $item->addContent($headerItem);
104 $this->_itemHeader=$headerItem;
106 if(\is_array($menu)){
107 $menu=
new HtmlMenu(
"menu-" . $this->identifier .
"-" . $count,$menu);
109 $menu->setClass(
"menu");
110 $item->addContent($menu);
122 $header->setContent($caption);
126 $header->addClass(
'item header');
137 $value->addContent(
new HtmlIcon(
"",
"dropdown"));
140 $popup->setFlowing()->setPosition(
"bottom left")->setOn(
"click");
141 $this->
wrap(
"", $popup);
147 if (\is_string($value)) {
148 $dd=
new HtmlDropdown(
"dropdown-" . $this->identifier .
"-" . $this->
count(), $value, $items);
161 $itemO=
new HtmlMenuItem($this->identifier.
"-item-" . \
sizeof($this->content),
"");
162 $itemO->setTagName(
"a");
163 $itemO->setContent($value);
184 return $this->
addToPropertyCtrl(
"class", $value .
" pointing", Direction::getConstantValues(
"pointing"));
187 public function asTab($vertical=
false) {
191 if ($vertical ===
true)
220 $return=$function($object);
221 if (\is_array($return))
233 if (\is_int($width)) {
234 $width=Wide::getConstants()[
"W" . $width];
253 return $this->
wrapContent(
"<div class='ui container'>",
"</div>");
257 if($this->identifier!==
"" && !isset($this->_bsComponent))
258 $this->
onClick(
'if(!$(this).hasClass("dropdown")&&!$(this).hasClass("no-active")){$(this).addClass("active").siblings().removeClass("active");}',
false,
false);
259 $result= parent::run($js);
260 return $result->setItemSelector(
">.item:not(.header)");
Base class for Html collections.
getItem($index)
Return the item at index.
wrapContent($before, $after="")
onClick($jsCode, $stopPropagation=false, $preventDefault=true)
removePropertyValue($name, $value)
propertyContains($propertyName, $value)
Base class for Semantic Html collections.
Base class for Semantic double elements.
addToPropertyCtrl($name, $value, $typeCtrl)
addToProperty($name, $value, $separator=" ")
Semantic Label component.