TimeRangePickerProps
Interface: TimeRangePickerProps
Properties
preset?
optionalpreset:DateRangePreset|null
Current preset value
customRange?
optionalcustomRange:TimeRange|null
Current custom range
onPresetChange()?
optionalonPresetChange: (preset) =>void
Called when a preset is selected
Parameters
preset
Returns
void
onCustomRangeChange()?
optionalonCustomRangeChange: (from,to,label?) =>void
Called when a custom range is selected
Parameters
from
Date
to
Date
label?
string
Returns
void
onClearCustomRange()?
optionalonClearCustomRange: () =>void
Called to clear custom range
Returns
void
customRangeLabel?
optionalcustomRangeLabel:string|null
Initial label for custom range (from URL params)
showLive?
optionalshowLive:boolean
Show LIVE mode option
isLive?
optionalisLive:boolean
Is LIVE mode active
onLiveChange()?
optionalonLiveChange: (isLive) =>void
Called when LIVE mode changes
Parameters
isLive
boolean
Returns
void
disabled?
optionaldisabled:boolean
Disabled state
timezone?
optionaltimezone:string
Timezone display (e.g., “UTC-08:00”)
apiUrl?
optionalapiUrl:string
API URL for AI parsing (defaults to window.location.origin)
projectSlug?
optionalprojectSlug:string
Project slug for API authentication
Last updated on