Trilium Frontend API
Preparing search index...
<internal>
DateProfileGenerator
Class DateProfileGenerator
Index
Constructors
constructor
Properties
is
Hidden
Day
Hash
props
Methods
adjust
Active
Range
build
build
Current
Range
Info
build
Custom
Visible
Range
build
Date
Increment
build
Next
build
Prev
build
Range
From
Day
Count
build
Range
From
Duration
build
Render
Range
build
Valid
Range
get
Fallback
Duration
init
Hidden
Days
is
Hidden
Day
refine
Range
skip
Hidden
Days
trim
Hidden
Days
Constructors
constructor
new
DateProfileGenerator
(
props
:
DateProfileGeneratorProps
)
:
DateProfileGenerator
Parameters
props
:
DateProfileGeneratorProps
Returns
DateProfileGenerator
Properties
is
Hidden
Day
Hash
isHiddenDayHash
:
boolean
[]
Protected
props
props
:
DateProfileGeneratorProps
Methods
adjust
Active
Range
adjustActiveRange
(
range
:
DateRange
)
:
{
end
:
Date
;
start
:
Date
}
Parameters
range
:
DateRange
Returns
{
end
:
Date
;
start
:
Date
}
build
build
(
currentDate
:
Date
,
nowDate
:
Date
,
direction
?:
any
,
forceToValid
?:
boolean
,
)
:
DateProfile
Parameters
currentDate
:
Date
nowDate
:
Date
Optional
direction
:
any
Optional
forceToValid
:
boolean
Returns
DateProfile
build
Current
Range
Info
buildCurrentRangeInfo
(
date
:
Date
,
direction
:
any
,
)
:
{
duration
:
any
;
range
:
any
;
unit
:
any
}
Parameters
date
:
Date
direction
:
any
Returns
{
duration
:
any
;
range
:
any
;
unit
:
any
}
build
Custom
Visible
Range
buildCustomVisibleRange
(
date
:
Date
)
:
DateRange
Parameters
date
:
Date
Returns
DateRange
build
Date
Increment
buildDateIncrement
(
fallback
:
any
)
:
Duration
Parameters
fallback
:
any
Returns
Duration
build
Next
buildNext
(
currentDateProfile
:
DateProfile
,
currentDate
:
Date
,
nowDate
:
Date
,
forceToValid
?:
boolean
,
)
:
DateProfile
Parameters
currentDateProfile
:
DateProfile
currentDate
:
Date
nowDate
:
Date
Optional
forceToValid
:
boolean
Returns
DateProfile
build
Prev
buildPrev
(
currentDateProfile
:
DateProfile
,
currentDate
:
Date
,
nowDate
:
Date
,
forceToValid
?:
boolean
,
)
:
DateProfile
Parameters
currentDateProfile
:
DateProfile
currentDate
:
Date
nowDate
:
Date
Optional
forceToValid
:
boolean
Returns
DateProfile
build
Range
From
Day
Count
buildRangeFromDayCount
(
date
:
Date
,
direction
:
any
,
dayCount
:
any
,
)
:
{
end
:
Date
;
start
:
Date
}
Parameters
date
:
Date
direction
:
any
dayCount
:
any
Returns
{
end
:
Date
;
start
:
Date
}
build
Range
From
Duration
buildRangeFromDuration
(
date
:
Date
,
direction
:
any
,
duration
:
Duration
,
unit
:
any
,
)
:
any
Parameters
date
:
Date
direction
:
any
duration
:
Duration
unit
:
any
Returns
any
build
Render
Range
buildRenderRange
(
currentRange
:
DateRange
,
currentRangeUnit
:
any
,
isRangeAllDay
:
any
,
)
:
DateRange
Parameters
currentRange
:
DateRange
currentRangeUnit
:
any
isRangeAllDay
:
any
Returns
DateRange
build
Valid
Range
buildValidRange
(
nowDate
:
Date
)
:
OpenDateRange
Parameters
nowDate
:
Date
Returns
OpenDateRange
get
Fallback
Duration
getFallbackDuration
()
:
Duration
Returns
Duration
init
Hidden
Days
initHiddenDays
()
:
void
Returns
void
is
Hidden
Day
isHiddenDay
(
day
:
any
)
:
boolean
Parameters
day
:
any
Returns
boolean
refine
Range
refineRange
(
rangeInput
:
DateRangeInput
)
:
DateRange
Parameters
rangeInput
:
DateRangeInput
Returns
DateRange
skip
Hidden
Days
skipHiddenDays
(
date
:
Date
,
inc
?:
number
,
isExclusive
?:
boolean
)
:
Date
Parameters
date
:
Date
Optional
inc
:
number
Optional
isExclusive
:
boolean
Returns
Date
trim
Hidden
Days
trimHiddenDays
(
range
:
DateRange
)
:
DateRange
Parameters
range
:
DateRange
Returns
DateRange
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
is
Hidden
Day
Hash
props
Methods
adjust
Active
Range
build
build
Current
Range
Info
build
Custom
Visible
Range
build
Date
Increment
build
Next
build
Prev
build
Range
From
Day
Count
build
Range
From
Duration
build
Render
Range
build
Valid
Range
get
Fallback
Duration
init
Hidden
Days
is
Hidden
Day
refine
Range
skip
Hidden
Days
trim
Hidden
Days
Trilium Frontend API
Loading...