Namespaces

  • 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
  • PHP

Classes

  • BaseControl
  • Button
  • Checkbox
  • HiddenField
  • ImageButton
  • MultiSelectBox
  • RadioList
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput
  • UploadControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class TextInput

Single line text input control.

Nette\Object
Extended by Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent
Extended by Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Extended by Nette\Forms\Controls\TextBase
Extended by Nette\Forms\Controls\TextInput
Namespace: Nette\Forms\Controls
Author: David Grudl
Located at Forms/Controls/TextInput.php
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

Nette\Forms\Controls\BaseControl::__construct()
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\Controls\BaseControl
# setType( string $type )

Changes control's type attribute.

Changes control's type attribute.

Parameters

$type
string

Returns

Nette\Forms\Controls\BaseControl
provides a fluent interface
public
# setPasswordMode( $mode = TRUE )

Deprecated

public Nette\Utils\Html
# getControl( )

Generates control's HTML element.

Generates control's HTML element.

Returns

Nette\Utils\Html

Overrides

Nette\Forms\Controls\TextBase::getControl()
Methods inherited from Nette\Forms\Controls\TextBase
addFilter(), addRule(), filterFloat(), getEmptyValue(), getValue(), setEmptyValue(), setValue(), validateEmail(), validateFloat(), validateInteger(), validateLength(), validateMaxLength(), validateMinLength(), validatePattern(), validateRange(), validateRegexp(), validateUrl()
Methods inherited from Nette\Forms\Controls\BaseControl
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 Nette\ComponentModel\Component
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from Nette\ComponentModel\IComponent
setParent()
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties inherited from Nette\Forms\Controls\TextBase
$emptyValue, $filters
Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $idMask, $label, $value
Magic properties summary
public write-only $type
#
Magic properties inherited from Nette\Forms\Controls\TextBase
$emptyValue
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control, $controlPrototype, $defaultValue, $disabled, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $options, $required, $rules, $translator, $value
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Magic properties inherited from Nette\Object
$reflection
Nette Framework 2.0.7 API API documentation generated by ApiGen 2.8.0