Prado\Web\UI\ActiveControls\TBaseActiveCallbackControl::registerCallbackClientScript PHP Метод

registerCallbackClientScript() публичный Метод

Registers the callback control javascript code. Client-side options are merged and passed to the javascript code. This method should be called by Active component developers wanting to register the javascript to initialize the active component with additional options offered by the {@link getClientSide ClientSide} property.
public registerCallbackClientScript ( $class, $options = null )
    public function registerCallbackClientScript($class, $options = null)
    {
        $cs = $this->getPage()->getClientScript();
        if (is_array($options)) {
            $options = array_merge($this->getClientSideOptions(), $options);
        } else {
            $options = $this->getClientSideOptions();
        }
        //remove true as default to save bytes
        if ($options['CausesValidation'] === true) {
            $options['CausesValidation'] = '';
        }
        $cs->registerCallbackControl($class, $options);
    }