Skip to content

DateRangePreset Type documentation

Types Documentation

Simple DateRangeFilter preset based on offset from now
Properties
translation key for label
label: TranslatableString
offset from current in milliseconds
offset: number
type?: "offset"
Advanced DateRageFilter preset with custom calculation
Properties
calculation custom calculation function
calculate: (self: DateRangePresetCustom, currentRange: DateRangeFilter) => DateRangeFilter
translation key for label
label: TranslatableString
Whether this should show only when time support is enabled
timeOnly?: boolean
type: "custom"
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality.
Translatable
import
Properties
point1: (Date | "now")
point2: (number | Date)
range?: ("after" | "before" | "within")

Except where otherwise noted, content on this site is licensed under MIT License.