public function __construct($objParent, $strControlId = null) { parent::__construct($objParent, $strControlId); $this->strTemplate = __DIR__ . '/accordion.tpl.php'; $this->SetHtmlAttribute("role", "tablist"); $this->SetHtmlAttribute("aria-multiselectable", "true"); Bootstrap::LoadJS($this); }
/** * @param \QControl|\QControlBase|\QForm $objParentObject * @param null $strControlId * @throws \Exception * @throws \QCallerException */ public function __construct($objParentObject, $strControlId = null) { try { parent::__construct($objParentObject, $strControlId); } catch (\QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } $this->prxButton = new \QControlProxy($this); $this->Setup(); $this->AddCssClass("list-group"); }