21 $this->_template=
"%element%%collapse%";
22 $this->element->setProperty(
"data-toogle",
"collapse");
23 $this->element->setProperty(
"aria-expanded",
"false");
27 $this->element->setProperty(
"aria-controls",
$identifier);
28 if ($this->element->getTagName()===
"a")
29 $this->element->setProperty(
"href",
"#".
$identifier);
31 $this->element->setProperty(
"data-target",
"#".
$identifier);
35 $id=$this->element->getProperty(
"aria-controls");
37 if ($this->element->getTagName()===
"a")
38 $id=$this->element->getProperty(
"href");
39 if (!isset($id)||$id===
"#") {
40 $id=
"collapse-".$this->element->getIdentifier();
56 $collapsedZone->setProperty(
"class",
"collapse");
57 $collapsedZone->setContent($content);
58 return $collapsedZone;
71 $this->_bsComponent=$js->
bootstrap()->collapse(
"#".$this->element->getIdentifier());
bootstrap(Bootstrap $bootstrap=NULL)
getter or setter of the Twitter Bootstrap variable
Twitter Bootstrap Collapse component.
__construct($element=NULL)
setAttachedZone(HtmlDoubleElement $element)
addCollapsedZone($content="", $attachTo=NULL)
createCollapsedZone($content="", $attachTo=NULL)
compile(JsUtils $js=NULL, &$view=NULL)
addEventsOnRun(JsUtils $js=NULL)