Prado\Web\UI\TClientScriptManager::registerFocusControl PHP Метод

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

Registers the control to receive default focus.
public registerFocusControl ( $target )
    public function registerFocusControl($target)
    {
        $this->registerPradoScriptInternal('jquery');
        if ($target instanceof TControl) {
            $target = $target->getClientID();
        }
        $this->_endScripts['prado:focus'] = 'jQuery(\'#' . $target . '\').focus();';
        $params = func_get_args();
        $this->_page->registerCachingAction('Page.ClientScript', 'registerFocusControl', $params);
    }