Options
All
  • Public
  • Public/Protected
  • All
Menu

TextField provides a wrapped native text input control.

Hierarchy

Implements

Index

Constructors

constructor

  • children is an array of content passed to this Component.

    Parameters

    Returns TextField

Properties

attrs

children

children: Content[]

error

error: Error<string, TextFieldAttrs, GenericFeedbackControl<string, TextFieldAttrs>> = error(this)(_root(this))

getValidationState

getValidationState: GetValidationState = getValidationState(_root(this))

neutral

neutral: Neutral<string, TextFieldAttrs, GenericFeedbackControl<string, TextFieldAttrs>> = neutral(this)(_root(this))

setMessage

setMessage: SetMessage<string, TextFieldAttrs, GenericFeedbackControl<string, TextFieldAttrs>> = setMessage(this)(_messages(this))

success

success: Success<string, TextFieldAttrs, GenericFeedbackControl<string, TextFieldAttrs>> = success(this)(_root(this))

view

view: View = new views.Main(this)

warning

warning: Warning<string, TextFieldAttrs, GenericFeedbackControl<string, TextFieldAttrs>> = warning(this)(_root(this))

Methods

get

  • get(): string

removed

  • removed(): void
  • Returns void

render

  • render(): Content
  • Returns Content

rendered

  • rendered(): void
  • Returns void

set

  • set(v: string): this

Object literals

values

values: object

control

control: object

class

class: string = concat(TEXT_FIELD, this.attrs.ww.class)

disabled

disabled: boolean = (this.attrs.ww.disabled === true) ? true : null

focus

focus: boolean = this.attrs.ww.focus

id

id: string = "control"

name

name: string = this.attrs.ww.name

oninput

oninput: (Anonymous function) = this.attrs.ww.onChange ? oninput(this) : () => { }

placeholder

placeholder: string = this.attrs.ww.placeholder || ''

readOnly

readOnly: boolean = (this.attrs.ww.readOnly === true) ? true : null

rows

rows: number = this.attrs.ww.rows || 1

type

type: string = this.attrs.ww.type || 'text'

value

value: string = this.attrs.ww.value || ''

template

label

label: object

id

id: string = this.attrs.ww.name

text

text: string = this.attrs.ww.label || ''

messages

messages: object

error

error: string = this.attrs.ww.error

id

id: string = "message"

success

success: string = this.attrs.ww.success

warning

warning: string = this.attrs.ww.warning

root

root: object

class

class: string = concat('form-group', this.attrs.ww.class, selectState(this.attrs.ww))

id

id: string = "root"

Generated using TypeDoc