DateRangeField

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

API

Constructor

new DateRangeField(?values)

Arguments:

ArgumentTypeDescription
valuesRangeFieldProps

Methods

clone()
Returns:Field
contributeToClass(viewModel)

Arguments:

ArgumentTypeDescription
*viewModelViewModelConstructor
Returns:void
format(value)

Arguments:

ArgumentTypeDescription
*valueDate
Returns:any
getFormatterProps()
Returns:{[fieldName: string]: any }
getWidgetProps()
Returns:{[fieldName: string]: any }
isEqual(value1,value2)

Arguments:

ArgumentTypeDescription
*value1Date
*value2Date
Returns:boolean
normalize(value)

Arguments:

ArgumentTypeDescription
*valueDate
Returns:null|Date
parse(value)

Arguments:

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

Arguments:

ArgumentTypeDescription
*valueDate
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|Date|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|Date

widgetProps

Source
Record

writeOnly

Source
boolean

Static Properties

fieldClassName

Source
string