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 and no recurrentStartDate provided) or recurrent time interval (has recurrentStartDate provided).

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.

availability

availability: AvailabilityRange[]

Working time for the interval.

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.

priority

priority: number

The priority of the interval.

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 value can be omitted when recurrentStartDate has a recurrence rule provided. In this case the interval will be calculated based on start date schedule only. And then the effective interval end will be calculated as the end of the day found based on the start date schedule.

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.

type

type: CalendarIntervalType

Interval type (can be either a week or an exception).

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