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