Options
All
  • Public
  • Public/Protected
  • All
Menu

This is a calendar interval mixin.

Can be either a static time interval (if startDate/endDate are specified) or recurrent time interval (recurrentStartDate/recurrentEndDate).

By default it defines a non-working period (isWorking field has default value false), but can also define an explicit working time, for example to override some previous period.

You probably don't need to create instances of this mixin directly, instead you pass its configuration object to the AbstractCalendarMixin.addInterval

Hierarchy

Index

Properties

$project

The project instance, this entity belongs to.

cls

cls: string

A CSS class to add to the element visualizing this interval.

endDate

endDate: Date

The end date of the fixed (not recurrent) time interval.

iconCls

iconCls: string

A CSS class used to add an icon to the element visualizing this interval.

isWorking

isWorking: boolean

The "is working" flag, which defines what kind of interval this is - either working or non-working. Default value is false, denoting non-working intervals.

name

name: string

The name of the recurrent time interval. Might be used in the UI when visualizing intervals.

recurrentEndDate

recurrentEndDate: string

The end date of the recurrent time interval. Should be specified as any expression, recognized by the excellent later library.

The field can also accept "EOD" string as a value. In this case the interval is calculated based on the start date schedule only. And then endDate is calculated as the end of the startDate day. For example in this case if startDate is calculated as 2021-09-23T00:00:00 the endDate will get 2021-09-24T00:00:00.

recurrentStartDate

recurrentStartDate: string

The start date of the recurrent time interval. Should be specified as any expression, recognized by the excellent later library.

startDate

startDate: Date

The start date of the fixed (not recurrent) time interval.

Methods

getAssignmentStore

  • getAssignmentStore(): this["project"]["assignmentStore"]

getCalendarManagerStore

  • getCalendarManagerStore(): this["project"]["calendarManagerStore"]

getDependencyStore

  • getDependencyStore(): this["project"]["dependencyStore"]

getEventStore

  • getEventStore(): this["project"]["eventStore"]

getProject

  • getProject(): this["project"]

getResourceStore

  • getResourceStore(): this["project"]["resourceStore"]

isRecurrent

  • isRecurrent(): boolean

isStatic

  • isStatic(): boolean

joinProject

  • joinProject(): void

leaveProject

  • leaveProject(isReplacing?: boolean): void

Private parseDateSchedule

  • parseDateSchedule(value: any): any

setProject

  • setProject(project: this["project"]): this["project"]

Generated using TypeDoc