Prado\Web\UI\WebControls\TKeyboard::getClientOptions PHP Method

getClientOptions() protected method

protected getClientOptions ( ) : array
return array the JavaScript options for this control
    protected function getClientOptions()
    {
        if (($forControl = $this->getForControl()) === '') {
            throw new TConfigurationException('keyboard_forcontrol_required');
        }
        if (($target = $this->findControl($forControl)) === null) {
            throw new TConfigurationException('keyboard_forcontrol_invalid', $forControl);
        }
        $options['ID'] = $this->getClientID();
        $options['ForControl'] = $target->getClientID();
        $options['AutoHide'] = $this->getAutoHide();
        $options['CssClass'] = $this->getKeyboardCssClass();
        return $options;
    }