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);
semantic(Semantic $semantic=NULL)
getter or setter of the Semantic-UI variable
BaseHtml for HTML components.
getItem($index)
Return the item at index.
addEventsOnRun(JsUtils $js=NULL)
Base class for Semantic Html collections.
Base class for Semantic double elements.
addToPropertyCtrl($name, $value, $typeCtrl)
setWidth($width="initial")
run(JsUtils $js)
SimpleExtComponent\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\Bas...
createItem($value)
The item factory.
flipUpOn($element, $event)
flipOverOn($element, $event)
__construct( $identifier, $sides)
compile(JsUtils $js=NULL, &$view=NULL)
flipLeftOn($element, $event)
doActionOn($element, $event, $what)
flipDownOn($element, $event)
flipRightOn($element, $event)
flipBackOn($element, $event)