PasswordField

Source
import { PasswordField } from "@prestojs/viewmodel";
Hierarchy

API

Constructor

new PasswordField(?values)

Arguments:

ArgumentTypeDescription
values
An object with the properties below
values.asyncChoicesAsyncChoicesInterface
values.blankboolean
values.blankAsNullboolean
values.choices|[SingleValueT, string][]
values.defaultValuenull|string|
values.formatterPropsRecord
values.helpTextstring
values.labelstring
values.maxLengthnumber
values.readOnlyboolean
values.widgetPropsRecord
values.writeOnlyboolean

Methods

clone()
Returns:Field
contributeToClass(viewModel)

Arguments:

ArgumentTypeDescription
*viewModelViewModelConstructor
Returns:void
format(value)

Arguments:

ArgumentTypeDescription
*valuestring
Returns:any
getFormatterProps()
Returns:{[fieldName: string]: any }
getWidgetProps()
Returns:
An object with these properties:
PropertyTypeDescription
maxLengthnumber
*...any
isEqual(value1,value2)

Arguments:

ArgumentTypeDescription
*value1string
*value2string
Returns:boolean
normalize(value)

Arguments:

ArgumentTypeDescription
*valuestring
Returns:null|string
parse(value)

Arguments:

ArgumentTypeDescription
*valuenull|string
Returns:null|string
toJS(value)

Arguments:

ArgumentTypeDescription
*valuestring
Returns:null|string|number|Record
toString()
Returns:string

Properties

blank

Source
boolean

blankAsNull

Source
boolean

boundRecord

Source
undefined|ViewModelInterface

choices

Source

defaultValue

Source
undefined|null|string|Promise

formatterProps

Source
Record

helpText

Source
string

isBound

Source
boolean

label

Source
string

maxLength

Source
number

name

Source
string

readOnly

Source
boolean

value

Source
undefined|string

widgetProps

Source
Record

writeOnly

Source
boolean

Static Properties

fieldClassName

Source
string