EodashDatePicker
A calendar for picking the global date, built on eox-timecontrol. Every date with data gets a dot, coloured per collection, compare side included. Picking a date updates the global datetime that map layers follow.
The date field steps through available dates one at a time. The buttons on either side jump straight to the oldest or latest. When a collection is selected, the entire picker is hidden unless the active collections, including the compare side, provide at least two distinct timestamps. This also hides navigation for static or process-only collections that have a temporal extent but no dated items.
Example
Default usage:
{
id: "date-picker",
title: "Date",
type: "internal",
layout: { x: 3, y: 9, w: 3, h: 3 },
widget: {
name: "EodashDatePicker",
properties: {},
},
}In compact mode the calendar stays closed until you hover or click the date field:
widget: {
name: "EodashDatePicker",
properties: {
toggleCalendar: true,
},
}Customize time display and popup item details:
widget: {
name: "EodashDatePicker",
properties: {
showTime: true,
timeFormat: "YYYY-MM-DD HH:mm",
itemTitleKey: "title",
},
}Properties
hideArrows?
Hide the step arrows next to the date input field.
hideArrows?: boolean = false;hideInputField?
Hide the date input field.
hideInputField?: boolean = false;itemTitleKey?
Property key on timeline items used as the primary title in popup cards.
itemTitleKey?: string = undefined;propertyTransform?
Transformation function for popup card items.
propertyTransform?:
| ((item) => string | false | TimeControlPopupItem | null)
| null = null;showItems?
Whether to show items list in the calendar popup.
showItems?: boolean = true;showTime?
Whether to show time in the calendar popup items.
showTime?: boolean = true;timeFormat?
Format string used for time display.
timeFormat?: string = "YYYY-MM-DD HH:mm";toggleCalendar?
When true, keeps calendar closed until hovered or clicked (compact mode).
toggleCalendar?: boolean = false;See also
- Internal widgets overview
- EodashTimeSlider - timeline-based date selection for collections with many timestamps.