Class NTextInput
Single line text input control.
-
NObject
-
NComponent
implements
IComponent
-
NFormControl
implements
IFormControl
-
NTextBase
-
NTextInput
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
Overrides
|
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
NFormControl
|
#
setType( string $type )
Changes control's type attribute.
Changes control's type attribute.
Parameters
Returns
|
public
|
|
public
NHtml
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
Overrides
|
Methods inherited from NTextBase
addFilter(),
addRule(),
filterFloat(),
getEmptyValue(),
getValue(),
setEmptyValue(),
setValue(),
validateEmail(),
validateFloat(),
validateInteger(),
validateLength(),
validateMaxLength(),
validateMinLength(),
validatePattern(),
validateRange(),
validateRegexp(),
validateUrl()
|
Methods inherited from NFormControl
addCondition(),
addConditionOn(),
addError(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
isFilled(),
isRequired(),
loadHttpData(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setRequired(),
setTranslator(),
translate(),
validateEqual(),
validateFilled(),
validateValid()
|
Methods inherited from NComponent
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Magic properties summary
public write-only
|
$type
|
|
Magic properties inherited from NFormControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$options,
$required,
$rules,
$translator,
$value
|