DatePicker~options

Properties

element

HTML element below which date picker will be positioned. If provided, it takes precedence over options.position.

position

Position of the element relative to the iframe. options.element takes precedence over it when provided.

showTime

Flag determining whether the component should also have a time picker. Defaults to false.

date

Date (and time) that should be pre-selected when displaying the picker in the format understandable by Date.parse method in JavaScript.

ISO 8601 is preferred. Timezone should be set to Z for UTC time or in the format of +/-hh:mm. Not setting it will cause JavaScript to use local timezone set in the browser. Defaults to current date/time.

onSelect

Callback that will be invoked when the date (and time) is selected by the user.