DecimalRangeField

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

API

Constructor

new DecimalRangeField(?values)
Params:
ParameterTypeDescription
valuesRangeFieldProps

Methods

clone()
Returns:Field
contributeToClass(viewModel)
Params:
ParameterTypeDescription
*viewModelViewModelConstructor
Returns:void
format(value)
Params:
ParameterTypeDescription
*valuestring
Returns:any
getFormatterProps()
Returns:{[fieldName: string]: any }
getWidgetProps()
Returns:{[fieldName: string]: any }
isEqual(value1,value2)
Params:
ParameterTypeDescription
*value1string
*value2string
Returns:boolean
normalize(value)
Params:
ParameterTypeDescription
*valuestring
Returns:null|string
parse(value)
Params:
ParameterTypeDescription
*valuenull|string
Returns:null|string
toJS(value)
Params:
ParameterTypeDescription
*valuestring
Returns:null|string|number|Record
toString()
Returns:string

Properties

blank

Source
boolean

blankAsNull

Source
boolean

boundRecord

Source
undefined|ViewModelInterface

choices

Source
Map

defaultValue

Source
undefined|null|string|Promise

formatterProps

Source
Record

helpText

Source
string

isBound

Source
boolean

label

Source
string

name

Source
string

readOnly

Source
boolean

separator

Source
string

value

Source
undefined|string

widgetProps

Source
Record

writeOnly

Source
boolean

Static Properties

fieldClassName

Source
string