Prado\Web\UI\WebControls\TClientScript::onPreRender PHP Method

onPreRender() public method

Calls the client script manager to add each of the requested client script libraries.
public onPreRender ( $param )
    public function onPreRender($param)
    {
        parent::onPreRender($param);
        $scripts = preg_split('/,|\\s+/', $this->getPradoScripts());
        $cs = $this->getPage()->getClientScript();
        foreach ($scripts as $script) {
            if (($script = trim($script)) !== '') {
                $cs->registerPradoScript($script);
            }
        }
    }