Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DateProfileGenerator

Index

Constructors

constructor

Properties

isHiddenDayHash

isHiddenDayHash: boolean[]

nowDate

nowDate: Date

Protected props

props: DateProfileGeneratorProps

Methods

adjustActiveRange

build

  • build(currentDate: Date, direction?: any, forceToValid?: boolean): DateProfile
  • Parameters

    • currentDate: Date
    • Optional direction: any
    • Optional forceToValid: boolean

    Returns DateProfile

buildCurrentRangeInfo

  • buildCurrentRangeInfo(date: Date, direction: any): { duration: any; range: any; unit: any }
  • Parameters

    • date: Date
    • direction: any

    Returns { duration: any; range: any; unit: any }

    • duration: any
    • range: any
    • unit: any

buildCustomVisibleRange

buildDateIncrement

  • buildDateIncrement(fallback: any): Duration

buildNext

buildPrev

buildRangeFromDayCount

  • buildRangeFromDayCount(date: Date, direction: any, dayCount: any): { end: Date; start: Date }
  • Parameters

    • date: Date
    • direction: any
    • dayCount: any

    Returns { end: Date; start: Date }

buildRangeFromDuration

  • buildRangeFromDuration(date: Date, direction: any, duration: Duration, unit: any): any
  • Parameters

    Returns any

buildRenderRange

  • buildRenderRange(currentRange: DateRange, currentRangeUnit: any, isRangeAllDay: any): DateRange

buildValidRange

  • buildValidRange(): OpenDateRange
  • Returns OpenDateRange

getFallbackDuration

initHiddenDays

  • initHiddenDays(): void
  • Returns void

isHiddenDay

  • isHiddenDay(day: any): boolean
  • Parameters

    • day: any

    Returns boolean

refineRange

skipHiddenDays

  • skipHiddenDays(date: Date, inc?: number, isExclusive?: boolean): Date
  • Parameters

    • date: Date
    • Optional inc: number
    • Optional isExclusive: boolean

    Returns Date

trimHiddenDays

Generated using TypeDoc