This is the simplest of all of the validated compoenents, as it replaces FwInput. Essentially, this component is designed to be used for the simplest data entry - just simple strings. Included with this textfield, however, is it will validate and display the error messages automatically on invalid data. Also, because of the nature of this component, it does not extend any other input component, so the ONLY options avaiable to it are those listed in this documentation (ie even if the option is valid on FwInput, if its not listed, it isn't available). Here is the basic usage:

<FwValidatedTextField @model={{model}} @valuePath="name" @label="Name" @update={{action (mut model.name)}} />
Show:

autocomplete

String

Basic Input autocomplete attribute. Click here for more details

autofocus

Boolean

Basic Input autofocus attribute. Click here for more details

disabled

Boolean

This boolean will determine if the text area is usable. A disabled textarea will display the value, but be unable to be edited. For more information click here

disableStyle

Boolean

If true, validation style classes will be skipped


Default: false

focus-out

Action

Action to call when clicking out of the text field

helpText

String

This is the text that will display in place of the error message if there is no error message to show (if there is an error message, that will trump this message)

infoText

String

This is the message displayed in the FwInfoIcon directly after the label. (this info icon will be before whatever content is in the afterLabel property)

label

String

Label is the words that are displayed as a label right before the textfield. Because of this property, there is no need to define a label before the component in your code.

maxCount

Number

Sets the limit of how many characters are allowed to be typed. Whichever of maxlength or maxCount is greater will determine the actual limit, but the count will display as negative and red if maxlength is surpassed.


Default: 3000

maxlength

Number

Sets the limit that will be displayed. See also maxCount.


Default: 3000

model

DS.Model

Model containing the validations

novalidate

Boolean

Basic Input formnovalidate attribute. Click here for more details

pattern

String

Basic Input pattern attribute. Click here for more details

placeholder

String

Placeholder is the placeholder of the input. It displays inside the textfield whenever the text area is empty. For more information click here.

readonly

Boolean

Basic Input readonly attribute Click here for more details

showCount

Boolean

If true, number of characters remaining will appear below the textarea, on the right.


Default: true

type

String

This is the many different types of inputs that there are. For a list of valid input types, click here. While it is hypothetically feasible to use any of these types with this component, this component is usually used only for textfields, so much further testing would be necessary before using it for any other input type.


Default: 'text'

update

Action

Action to call when the input changes

validation

Unknown private

Current value of the object

value

Unknown private

Current value of the object

valuePath

String

Key being validated by this field