Class TextInput
Single line text input control.
-
Nette\Object
-
Nette\Component
implements
Nette\IComponent
-
Nette\Forms\FormControl
implements
Nette\Forms\IFormControl
-
Nette\Forms\TextBase
-
Nette\Forms\TextInput
Methods summary
public
|
#
__construct( string $label = NULL, string $cols = NULL, integer $maxLength = NULL )
Parameters
- $label
string control name
- $cols
string label
- $maxLength
integer width of the control
|
public
string
|
#
sanitize( $value )
Filter: removes unnecessary whitespace and shortens value to control's max
length.
Filter: removes unnecessary whitespace and shortens value to control's max
length.
Returns
string
|
public
Nette\Forms\TextInput
|
#
setPasswordMode( boolean $mode = TRUE )
Sets or unsets the password mode.
Sets or unsets the password mode.
Parameters
Returns
|
public
Nette\Web\Html
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
|
public
|
#
notifyRule( Nette\Forms\Rule $rule )
New rule or condition notification callback.
New rule or condition notification callback.
Parameters
|
Methods inherited from Nette\Forms\TextBase
addFilter(),
filterFloat(),
getEmptyValue(),
getValue(),
setEmptyValue(),
setValue(),
validateEmail(),
validateFloat(),
validateInteger(),
validateLength(),
validateMaxLength(),
validateMinLength(),
validateRange(),
validateRegexp(),
validateUrl()
|
Methods inherited from Nette\Forms\FormControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
loadHttpData(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setTranslator(),
translate(),
validateEqual(),
validateFilled(),
validateValid()
|
Methods inherited from Nette\Component
__clone(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|