11 parent::__construct(
$js);
12 $this->paramParts=array();
16 $this->paramParts[]=[$name];
22 foreach ($this->paramParts as $paramPart){
23 $results[]=
"{$this->uiName}(".\implode(
",", $paramPart).
")";
25 return \implode(
".", $results);
30 $this->jquery_code_for_compile=array ();
33 if(\
sizeof($this->paramParts)>0){
36 $this->jquery_code_for_compile []=
"$( \"".$this->attachTo.
"\" ).{$this->uiName}(".$this->
getParamsAsJSON($allParams).
")".
$paramParts.
";";
47 $jsCode=\str_ireplace(
"\"",
"%quote%", $jsCode);
48 return $this->
setParam($event,
"%function(module){".$jsCode.
"}%");
53 $js->
semantic()->addComponent($this, $this->attachTo, $this->params);
__construct(JsUtils $js=NULL)
addComponentEvent($event, $jsCode)
setParamParts($paramParts)
semantic(Semantic $semantic=NULL)
getter or setter of the Semantic-UI variable