Esempio n. 1
0
 /**
  * Dropdown constructor.
  * @param \QControl|\QControlBase|\QForm $objParentObject
  * @param string|null $strControlId
  */
 public function __construct($objParentObject, $strControlId = null)
 {
     parent::__construct($objParentObject, $strControlId);
     // utilize the wrapper to group the components of the button
     $this->blnUseWrapper = true;
     $this->AddWrapperCssClass("dropdown");
     // default to menu type of drowdown
 }
Esempio n. 2
0
 /**
  * @param \QControl|\QControlBase|\QForm $objParent
  * @param null $strControlId
  * @throws \Exception
  * @throws \QCallerException
  */
 public function __construct($objParent, $strControlId = null)
 {
     parent::__construct($objParent, $strControlId);
     $this->AddCssClass('nav nav-tabs');
     // default to tabs
     $this->SetHtmlAttribute('role', 'tablist');
     $this->objItemStyle = new \QListItemStyle();
     $this->objItemStyle->SetHtmlAttribute('role', 'presentation');
     $this->AddAction(new Nav_SelectEvent(), new \QAjaxControlAction($this, 'tab_Click'));
     $this->blnUseWrapper = true;
     // since its a compound control, a wrapper is required if redraw is forced.
     $this->blnIsBlockElement = true;
     Bootstrap::LoadJS($this);
 }
Esempio n. 3
0
 public function __construct($objParent, $strControlId = null)
 {
     parent::__construct($objParent, $strControlId);
     //$this->AddCssFile(__BOOTSTRAP_CSS__);
 }