(Object, Component<Date>). Used as a kitchen sink Date component with optional Calendar support if need be. Please note that Calendar support is not included with release v1.0 of Vercengen at the moment.
The companion Object, Component<DateLength> is used to either set a date domain (length of time between two dates) or absolute length of time.
Note. ‘Returns:’ refers to what the Component value returns when exported to its .variable
binding.
<component_key>: (Object, Component<Date>)
- Inherits from Component.
- name: (String, Localisation) - Optional.
- placeholder: (Function/Object, Date) - Optional. The initial date to set this to. If the string is ‘current_time’, it will display the current Date over all enabled fields.
- year: (Number)
- month: (Number)
- day: (Number)
- hour: (Number)
- minute: (Number)
- second: (Number)
- calendar: (Object) - Optional. If undefined, no Calendar widget access is given.
- has_event_search: (Boolean) - Determines whether there is a search select for viewing Events in the Calendar.
- has_multi_select: (Boolean) - Whether you can select multiple dates at the same time to perform operations on. If allowed, it also allows for Date masking via Events.
- is_calendar_only: (Boolean) - Whether the date is unadjustable and serves only as a button for the calendar.
- is_input_only: (Boolean) - Whether the Calendar exists only as an input for the Date.
- on_add_event: (Function)
- on_add_event_interface: (Object, Interface) - Optional. The context menu that pops up when adding an Event. Simply creates a template ‘New Event’ by default.
- on_event: (Function) - Fires when an event is passed using the Date widget or control.
- on_event_click: (Function) - The function to fire when an Event on the Calendar is clicked.
- on_event_click_interface: (Object, Interface) - The interface to show when an Event is selected.
- on_remove_event: (Function)
- visible: (Boolean) - Optional. Determines whether the calendar is visible by default.
- disable_days: (Boolean)
- disable_hours: (Boolean)
- disable_minutes: (Boolean)
- disable_months: (Boolean)
- disable_seconds: (Boolean)
- disable_years: (Boolean)
- has_speed_widget: (Boolean) - Whether to allow the speed/time adjustment widgets at the bottom.
- max: (Object, Date) - The latest date available to pick from. Applies to the Calendar as well.
- min: (Object, Date) - The earliest date available to pick from. Applies to the Calendar as well.
- multiline: (Boolean) - Optional. Whether hours/minutes/seconds should be placed on another line.
- timelapse: (Object)
- default_speed: (Object, Date) - What the default speed should be in terms of time steps per interval.
- domain: (Array<number, number>) - Optional. The actual domain to allow the timelapse for. Unlimited by default.
- has_pause_button: (Boolean) - Optional. True by default.
- interval: (Number) - Optional. The interval to use when the timelapse is active in ms. 100 by default.
- Returns: (Object)
- calendar: (Object)
- events: (Object)
- <event_key>: (Object)
- date: (Object, Date)
- description: (String, Localisation)
- name: (String, Localisation)
- options: (Object)
- year: (Number)
- month: (Number)
- day: (Number)
- hour: (Number)
- minute: (Number)
- second: (Number)