18 parent::__construct(
$js);
19 $this->params = array(
22 $this->uiName =
"accordion";
38 return $this->
setParam(
"active", $value);
57 $value = $value->getParams();
58 else if (is_string($value)) {
60 $animation->setEasing($value);
75 return $this->
setParamCtrl(
"collapsible", $value,
"is_bool");
86 return $this->
setParamCtrl(
"disabled", $value,
"is_bool");
114 return $this->
setParam(
"header", $value);
129 return $this->
setParamCtrl(
"heightStyle", $value, array(
147 if (is_string($value)) {
148 if (JString::startsWith($value,
"{"));
149 $value =
"%" . $value .
"%";
164 return $this->
addEvent(
"activate", $jsCode);
177 return $this->
addEvent(
"beforeActivate", $jsCode);
188 return $this->
addEvent(
"create", $jsCode);
Base component for JQuery UI visuals components.
setParamCtrl($key, $value, $typeCtrl)
addEvent($event, $jsCode)
Composant JQuery UI Accordion.
setActive($value)
Which panel is currently open.
onBeforeActivate($jsCode)
Triggered directly before a panel is activated.
setEvent($value)
The event that accordion headers will react to in order to activate the associated panel.
setHeader($value)
Selector for the header element, applied via .
onActivate($jsCode)
Triggered after a panel has been activated (after animation completes).
setAnimate($value)
If and how to animate changing panels.
setCollapsible($value)
Whether all the sections can be closed at once.
onCreate($jsCode)
Triggered when the accordion is created.
setIcons($value)
Icons to use for headers, matching an icon provided by the jQuery UI CSS Framework.
setHeightStyle($value)
Controls the height of the accordion and each panel.
setDisabled($value)
Disables the accordion if set to true.
Composant JQuery UI Animation property.