DateDataField
This field class handles field of type Date.
class Person extends Model {
static get fields() {
return [
'name',
{ name : 'birthday', type : 'date', format : 'YYYY-MM-DD' },
{ name : 'age', readOnly : true }
];
}
}
When a field is declared as a 'date', non-null values are promoted to Date type. This is frequently needed due
to how date types are serialized to JSON strings.
Date fields can have a special defaultValue of 'now' which will convert to the current date/time.
Configs
19
Configs
19The format of the date field.
See DateHelper for details.
alwaysWriteDataField
bypassEqualityOnSyncDatasetDataField
calculateDataField
columnDataField
compareDataField
complexMappingDataField
dataSourceDataField
defaultValueDataField
descriptionDataField
formulaProvidersDataField
internalDataField
labelDataField
nameDataField
nullableDataField
nullTextDataField
nullValueDataField
persistDataField
readOnlyDataField
Properties
7
Properties
7Class hierarchy
Identifies an object as an instance of DateDataField class, or subclass thereof.
Identifies an object as an instance of DateDataField class, or subclass thereof.
isDataFieldDataField
Functions
19
Functions
19Configuration
Events
detachListenersBase