date-input

Overview

date-input allows users to select a date from a calendar.

circle-info

Version compatibility

date-input was introduced in version 4.72.1 of the JourneyApps Runtime.

Basic Example

main.view.xml
<var name="delivery_date" type="date"/>

<date-input label="Delivery date" bind="delivery_date" required="false" />

Standard Attributes

bind

bindchevron-right

label

labelchevron-right

required

requiredchevron-right

Advanced Attributes

align-content

align-contentchevron-right

align-label

align-labelchevron-right

clear-button-visibility

clear-button-visibilitychevron-right

disabled

disabledchevron-right

error-message

error-messagechevron-right

id

idchevron-right

icon-position

circle-info

Version compatibility

icon-position was introduced in version 4.86.1 of the JourneyApps Runtime.

icon-positionchevron-right

label-case

circle-info

Version compatibility

label-case was introduced in version 4.80.0 of the JourneyApps Runtime.

label-casechevron-right

label-color

label-colorchevron-right

modifier-text

modifier-textchevron-right

on-change

on-changechevron-right

placeholder

placeholderchevron-right

show-if and hide-if

show-ifchevron-righthide-ifchevron-right

Component Methods

The following component methods are available when an id is assigned to the component and component.dateInput({id:'my-id'}) is called from JS/TS:

clear

Programmatically clear the selected date bound to the date-input component.

pickDate

Programmatically open the date picker to allow the user to select or update a date value.

scrollIntoView

Programmatically scroll until the date-input is visible in the view.

Last updated