Nextras\Forms\Bridges\Latte\Macros\BS3InputMacros::input PHP Méthode

input() public static méthode

public static input ( Nette\Utils\Html $input, BaseControl $control, $isPart )
$input Nette\Utils\Html
$control Nette\Forms\Controls\BaseControl
    public static function input(Html $input, BaseControl $control, $isPart)
    {
        $name = $input->getName();
        if ($name === 'select' || $name === 'textarea' || $name === 'input' && !in_array($input->type, ['radio', 'checkbox', 'file', 'hidden', 'range', 'image', 'submit', 'reset'])) {
            $input->addClass('form-control');
        } elseif ($name === 'input' && ($input->type === 'submit' || $input->type === 'reset')) {
            $input->setName('button');
            $input->addHtml($input->value);
            $input->addClass('btn');
        }
        return $input;
    }
BS3InputMacros