Nette\Forms\Container::addPassword PHP Метод

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

Adds single-line text input control used for sensitive input such as passwords.
public addPassword ( $name, $label = NULL, $cols = NULL, $maxLength = NULL ) : TextInput
Результат Nette\Forms\Controls\TextInput
    public function addPassword($name, $label = NULL, $cols = NULL, $maxLength = NULL)
    {
        return $this[$name] = (new Controls\TextInput($label, $maxLength))->setAttribute('size', $cols)->setType('password');
    }