Prado\Web\UI\ActiveControls\TTriggeredCallback::getTriggerOptions PHP Method

getTriggerOptions() protected method

protected getTriggerOptions ( ) : array
return array list of trigger callback options.
    protected function getTriggerOptions()
    {
        $options['ID'] = $this->getClientID();
        $options['EventTarget'] = $this->getUniqueID();
        $options['ControlID'] = $this->getTargetControl();
        return $options;
    }

Usage Example

 /**
  * @return array list of timer options for client-side.
  */
 protected function getTriggerOptions()
 {
     $options = parent::getTriggerOptions();
     $name = preg_replace('/^on/', '', $this->getEventName());
     $options['EventName'] = strtolower($name);
     $options['StopEvent'] = $this->getPreventDefaultAction();
     return $options;
 }
All Usage Examples Of Prado\Web\UI\ActiveControls\TTriggeredCallback::getTriggerOptions