src/ng-xform/fields/date-field.ts
Properties |
|
constructor(options: DateField
|
||||||||
Defined in src/ng-xform/fields/date-field.ts:11
|
||||||||
Parameters :
|
Public controlType |
controlType:
|
Default value : 'DATE'
|
Defined in src/ng-xform/fields/date-field.ts:4
|
Public initialValue |
initialValue:
|
Type : Date
|
Defined in src/ng-xform/fields/date-field.ts:7
|
Public locale |
locale:
|
Type : string
|
Defined in src/ng-xform/fields/date-field.ts:8
|
Public maxDate |
maxDate:
|
Type : Date
|
Defined in src/ng-xform/fields/date-field.ts:9
|
Public minDate |
minDate:
|
Type : Date
|
Defined in src/ng-xform/fields/date-field.ts:10
|
Public placement |
placement:
|
Type : "top" | "bottom" | "left" | "right"
|
Defined in src/ng-xform/fields/date-field.ts:6
|
Public showWeekNumbers |
showWeekNumbers:
|
Type : boolean
|
Defined in src/ng-xform/fields/date-field.ts:11
|
Public theme |
theme:
|
Type : "default" | "green" | "blue" | "dark-blue" | "red" | "orange"
|
Defined in src/ng-xform/fields/date-field.ts:5
|
import { DynamicField } from './dynamic-field';
export class DateField<T = any> extends DynamicField<T> {
public controlType ? = 'DATE';
public theme?: 'default' | 'green' | 'blue' | 'dark-blue' | 'red' | 'orange';
public placement?: 'top' | 'bottom' | 'left' | 'right';
public initialValue?: Date;
public locale?: string;
public maxDate?: Date;
public minDate?: Date;
public showWeekNumbers?: boolean;
constructor(options: DateField<T>) {
super(options);
this.theme = options.theme || 'dark-blue';
this.placement = options.placement || 'bottom';
this.maxDate = options.maxDate;
this.minDate = options.minDate;
this.locale = options.locale;
this.showWeekNumbers = !!options.showWeekNumbers;
}
}