File

src/ng-xform/fields/date-field.ts

Extends

DynamicField

Index

Properties

Constructor

constructor(options: DateField)
Parameters :
Name Type Optional Description
options DateField<T>

Properties

Public controlType
controlType:
Default value : 'DATE'
Public initialValue
initialValue: Date
Type : Date
Public locale
locale: string
Type : string
Public maxDate
maxDate: Date
Type : Date
Public minDate
minDate: Date
Type : Date
Public placement
placement: "top" | "bottom" | "left" | "right"
Type : "top" | "bottom" | "left" | "right"
Public showWeekNumbers
showWeekNumbers: boolean
Type : boolean
Public theme
theme: "default" | "green" | "blue" | "dark-blue" | "red" | "orange"
Type : "default" | "green" | "blue" | "dark-blue" | "red" | "orange"
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;
  }
}

results matching ""

    No results matching ""