コード例 #1
0
ファイル: Dropdown.php プロジェクト: qcubed/plugin_bootstrap
 /**
  * Returns the javascript associated with the button.
  *
  * @return string
  * @throws \QCallerException
  */
 public function GetEndScript()
 {
     // Trigger the dropdown select event on the main control
     \QApplication::ExecuteSelectorFunction('#' . $this->ControlId . "_list", 'on', 'click', 'li', new \QJsClosure("\njQuery('#{$this->ControlId}').trigger ('bsdropdownselect', {id:this.id, value:\$j(this).data('value')});\n"), \QJsPriority::High);
     return parent::GetEndScript();
 }
コード例 #2
0
ファイル: Carousel.php プロジェクト: alfhan/plugin_bootstrap
 public function GetEndScript()
 {
     \QApplication::ExecuteControlCommand($this->ControlId, 'on', 'click', '.item', new \QJsClosure("jQuery(this).trigger('bscarousselect', this.id)"), \QJsPriority::High);
     return parent::GetEndScript();
 }