17 parent::__construct(
$identifier,
"div",
"ui shape");
18 $this->_template=
'<%tagName% id="%identifier%" %properties%><div class="sides">%wrapContentBefore%%content%%wrapContentAfter%</div></%tagName%>';
27 if(\is_object($value)===
false){
30 return new HtmlShapeItem(
"side-".$this->identifier.
"-".$this->count(), $value);
56 return $item->getContent();
60 public function jsDo($action){
61 return "$('#".$this->identifier.
"').shape('".$action.
"');";
65 return $this->
jsDo(
"flip left");
69 return $this->
jsDo(
"flip right");
73 return $this->
jsDo(
"flip up");
77 return $this->
jsDo(
"flip down");
81 return $this->
jsDo(
"flip over");
85 return $this->
jsDo(
"flip back");
90 return $element->on($event, $what,
true,
true);
121 $side->setActive(
true);
135 $this->_params[
"width"]=$width;
138 return $this->_params[
"onChange"]=
"%function(){" . $jsCode .
"}%";
142 return $this->_params[
"beforeChange"]=
"%function(){" . $jsCode .
"}%";
150 if (isset($this->_bsComponent) ===
false)
151 $this->_bsComponent=$js->
semantic()->shape(
"#" . $this->identifier, $this->_params);
157 if($this->_autoActive)
159 return parent::compile($js,$view);
doActionOn($element, $event, $what)
flipLeftOn($element, $event)
compile(JsUtils $js=NULL, &$view=NULL)
BaseHtml for HTML components.
setWidth($width="initial")
__construct( $identifier, $sides)
flipBackOn($element, $event)
addEventsOnRun(JsUtils $js=NULL)
flipOverOn($element, $event)
getItem($index)
Return the item at index.
semantic(Semantic $semantic=NULL)
getter or setter of the Semantic-UI variable
Base class for Semantic double elements.
Base class for Semantic Html collections.
flipDownOn($element, $event)
addToPropertyCtrl($name, $value, $typeCtrl)
flipUpOn($element, $event)
flipRightOn($element, $event)