File

projects/wms-framework/src/lib/models/controls/CalendarDateRangeModel.ts

Description

CalendarDateRangeModel class

Index

Properties

Constructor

constructor(...args: | | )
Parameters :
Name Type Optional
args | | No

Properties

Public Description
Type : string

Text description

Public End
Type : Date

Range end date

Public Start
Type : Date

Range start date

export class CalendarDateRangeModel {
  /**
   * Text description
   *
   * @type {string}
   * @memberof CalendarDateRangeModel
   */
  public Description: string;

  /**
   * Range end date
   *
   * @type {Date}
   * @memberof CalendarDateRangeModel
   */
  public End: Date;

  /**
   * Range start date
   *
   * @type {Date}
   * @memberof CalendarDateRangeModel
   */
  public Start: Date;
  constructor(
    ...args:
      | [day: Date]
      | [start: Date, end: Date]
      | [start: Date, end: Date, description: string]
  ) {
    if (args.length === 1) {
      this.Start = args[0];
      this.End = args[0];
    } else {
      this.Start = args[0];
      this.End = args[1];
      this.Description = args.length === 3 ? args[2] : undefined;
    }
  }
}

result-matching ""

    No results matching ""