Methods summary
public
string
|
#
getValue( )
Returns control's value.
Returns
string string
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 $message = NULL, mixed $arg = NULL )
Adds a validation rule.
Parameters
- $validator
- type
- $message
- to display for invalid data
- $arg
- rule arguments
Returns
Overrides
|
public
|
#
validate( )
Performs the server side validation.
Performs the server side validation.
Overrides
|