Methods summary
public
Nette\Forms\Controls\TextBase
|
#
setValue( mixed $value )
Sets control's value.
Parameters
Returns
Internal
Overrides
|
public
mixed
|
#
getValue( )
Returns control's value.
Returns
mixed mixed
Overrides
|
public
Nette\Forms\Controls\TextBase
|
#
setNullable( boolean $value = true )
Sets whether getValue() returns null instead of empty string.
Sets whether getValue() returns null instead of empty string.
Parameters
Returns
|
public
Nette\Forms\Controls\TextBase
|
#
setEmptyValue( string $value )
Sets the special value which is treated as empty string.
Sets the special value which is treated as empty string.
Parameters
Returns
|
public
string
|
#
getEmptyValue( )
Returns the special value which is treated as empty string.
Returns the special value which is treated as empty string.
Returns
string string
|
public
Nette\Forms\Controls\TextBase
|
#
setMaxLength( integer $length )
Sets the maximum number of allowed characters.
Sets the maximum number of allowed characters.
Parameters
Returns
|
public
Nette\Forms\Controls\TextBase
|
#
addFilter( callable $filter )
Appends input string filter callback.
Appends input string filter callback.
Parameters
Returns
|
public
Html|string
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
Html|string Html|string
Overrides
|
protected
string|null
|
|
public
Nette\Forms\Controls\TextBase
|
#
addRule( mixed $validator, string|object $errorMessage = null, mixed $arg = null )
Parameters
- $validator
- $errorMessage
- $arg
Returns
Overrides
|