Datetime Picker
A date and time picker that combines a calendar grid and hour/minute selects in a popover, with a value of "YYYY-MM-DDTHH:MM".
Preview
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
value | string | — | Date-time value in YYYY-MM-DDTHH:MM format |
use24 | boolean | — | Use 24-hour time format |
minuteStep | number | 5 | Minute select step interval |
disabled | boolean | — | Disables the trigger |
Installation
pura is copy-paste and dependency-free. Load the whole library, or just this component.
<link rel="stylesheet" href="/pura/tokens.css">
<script type="module" src="/pura/lib/datetime-picker.js"></script> import "./pura/lib/datetime-picker.js";