Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 public function GetEndScript()
 {
     \QApplication::ExecuteControlCommand($this->ControlId, 'on', 'click', '.item', new \QJsClosure("jQuery(this).trigger('bscarousselect', this.id)"), \QJsPriority::High);
     return parent::GetEndScript();
 }