Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class NTextInput

Single line text input control.

NObject
Extended by NComponent implements IComponent
Extended by NFormControl implements IFormControl
Extended by NTextBase
Extended by NTextInput
Package: Nette\Forms\Controls
Author: David Grudl
Located at Forms/Controls/TextInput.php
Methods summary
public
# __construct( string $label = NULL, integer $cols = NULL, integer $maxLength = NULL )

Parameters

$label
string
label
$cols
integer
width of the control
$maxLength
integer
maximum number of characters the user may enter

Overrides

NTextBase::__construct()
public NTextInput
# setType( string $type )

Changes control's type attribute.

Changes control's type attribute.

Parameters

$type
string

Returns

NTextInput
public
# setPasswordMode( $mode = TRUE )

Deprecated

public NHtml
# getControl( )

Generates control's HTML element.

Generates control's HTML element.

Returns

NHtml

Overrides

NTextBase::getControl()
Methods inherited from NTextBase
addFilter(), addRule(), getEmptyValue(), getValue(), sanitize(), setEmptyValue(), setValue(), validateEmail(), validateLength(), 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()
Methods inherited from NComponent
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from IComponent
setParent()
Constants inherited from IComponent
NAME_SEPARATOR
Properties inherited from NTextBase
$emptyValue, $filters
Properties inherited from NFormControl
$caption, $control, $idMask, $label, $value
Magic properties summary
public write-only $type
#
Magic properties inherited from NTextBase
$emptyValue
Magic properties inherited from NFormControl
$control, $controlPrototype, $defaultValue, $disabled, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $options, $required, $rules, $translator, $value
Magic properties inherited from NComponent
$name, $parent
Magic properties inherited from NObject
$reflection
Nette Framework 2.0.18 (for PHP 5.2, prefixed) API documentation generated by ApiGen 2.8.0