Nette\Forms\Controls\TextBase::setNullable PHP Method

setNullable() public method

Sets whether getValue() returns NULL instead of empty string.
public setNullable ( $value = TRUE ) : self
return self
    public function setNullable($value = TRUE)
    {
        $this->nullable = (bool) $value;
        return $this;
    }