Date-Time-Picker Stable Dark theme
A calendar for date inputs.
<uimc-date-picker label="Date…"></uimc-date-picker>
<uimc-time-picker label="Time…"></uimc-time-picker>
Datepicker <uimc-date-picker>
Attribute | Description | Values | Default |
---|---|---|---|
label | Sets the label for the inputfield | – | |
theme | Set the color scheme of the component | light , dark | light |
value | Sets and reflects the picked date as a formatted string | DateString | – |
Timepicker <uimc-time-picker>
Attribute | Description | Values | Default |
---|---|---|---|
label | Sets the label for the inputfield | – | |
theme | Set the color scheme of the component | light , dark | light |
Datepicker sample
<uimc-date-picker label="Date…"></uimc-date-picker>
Datepicker in dark scheme
<uimc-date-picker label="Date…" theme="dark"></uimc-date-picker>
Preselect a date
<uimc-date-picker label="Date…" value="2022-12-24"></uimc-date-picker>
Expand to container width
<uimc-date-picker label="Date…" class="width-100"></uimc-date-picker>
Timepicker
<uimc-time-picker label="Time…"></uimc-time-picker>
Expand Timepicker to container width
<uimc-time-picker label="Time…" class="width-100"></uimc-time-picker>
Legacy version
The old version from UI MarCom 2 is based on a jQuery plugin and also supports an inline view and selection of date ranges
Inline Datepicker
<div class="textfield date-time-picker js-date-time-picker" data-inline="true"data-select="date" data-labels="{}">
<input id="date-time-picker" type="text" class="textfield__input date-time-picker__input">
<label for="date-time-picker" class="textfield__label date-time-picker__label">Date…</label>
</div>
Inline Timepicker
<div class="textfield date-time-picker js-date-time-picker" data-inline="true" data-select="time" data-labels="{}">
<input id="date-time-picker" type="text" class="textfield__input date-time-picker__input">
<label for="date-time-picker" class="textfield__label date-time-picker__label">Choose a time…</label>
</div>
Date range picker
<div class="textfield date-time-picker js-date-time-picker" data-select="date" data-mode="range" data-labels="{}">
<input id="date-time-picker" type="text" class="textfield__input date-time-picker__input">
<label for="date-time-picker" class="textfield__label date-time-picker__label">Choose date period…</label>
</div>