protected function renderDefault($name, $value, $options)
    {
        $type = $this->type;

        if (method_exists('yii\helpers\Html', $type)) {
            $options['tabindex'] = self::TABINDEX;

            if ($this->renderer->isBootstrapTheme()) {
                Html::addCssClass($options, 'form-control');
            }

            $input = Html::$type($name, $value, $options);
        } elseif (class_exists($type) && method_exists($type, 'widget')) {
            $input = $this->renderWidget($type, $name, $value, $options);
        } else {
            throw new InvalidConfigException("Invalid column type '$type'");
        }

        return $input;
    }
protected function renderDefault($name, $value, $options)
    {
        $type = $this->type;

        if (method_exists('yii\helpers\Html', $type)) {
            $options['tabindex'] = self::TABINDEX;

            if ($this->renderer->isBootstrapTheme()) {
                Html::addCssClass($options, 'form-control');
            }

            $input = Html::$type($name, $value, $options);
        } elseif (class_exists($type) && method_exists($type, 'widget')) {
            $input = $this->renderWidget($type, $name, $value, $options);
        } else {
            throw new InvalidConfigException("Invalid column type '$type'");
        }

        return $input;
    }
protected function renderDefault ( $ name , $ value , $ options ) { $ type = $ this -> type ; if ( method_exists ( 'yii\helpers\Html' , $ type ) ) { $ options [ 'tabindex' ] = self :: TABINDEX ; if ( $ this -> renderer -> isBootstrapTheme ( ) ) { Html :: addCssClass ( $ options , 'form-control' ) ; } $ input = Html :: $ type ( $ name , $ value , $ options ) ; } elseif ( class_exists ( $ type ) && method_exists ( $ type , 'widget' ) ) { $ input = $ this -> renderWidget ( $ type , $ name , $ value , $ options ) ; } else { throw new InvalidConfigException ( "Invalid column type '$type'" ) ; } return $ input ; }
Renders an input.

@param string $name the name of input
@param mixed $value the value of input
@param array $options the HTMl options of input
@return string
@throws InvalidConfigException
Renders an input .