Skip to main content

inno-date-picker

Default calendar
Changed week start day and no outer month days
Default calendar
Changed week start day and no outer month days

Overview

Innomotics date-picker.

Properties

PropertyAttributeDescriptionTypeDefault
formatformatDate format string. See "https://moment.github.io/luxon/#/formatting?id=table-of-tokens" for all available tokens.string'yyyy/LL/dd'
fromfromThe selected starting date. If the date-picker is not in range mode this is the selected date. Format has to match the format property.stringundefined
i18nDonei18n-doneText of date select buttonstring'Done'
localelocaleFormat of time string See "https://moment.github.io/luxon/#/formatting?id=table-of-tokens" for all available tokens.stringundefined
maxDatemax-dateThe latest date that can be selected by the date picker. If not set there will be no restriction.stringundefined
minDatemin-dateThe earliest date that can be selected by the date picker. If not set there will be no restriction.stringundefined
rangerangeIf true a date-range can be selected (from/to).booleantrue
showOuterDaysshow-outer-daysShow the days outside the selected month.booleantrue
totoThe selected end date. If the date-picker is not in range mode this property has no impact. Format has to match the format property.stringundefined
weekStartIndexweek-start-indexThe index of which day to start the week on, based on the Locale#weekdays array. E.g. if the locale is en-us, weekStartIndex = 1 results in starting the week on monday.number0

Events

EventDescriptionType
dateChangeTriggers if the date selection changes.CustomEvent<{ from: string; to: string; }>

Methods

getCurrentDate() => Promise<{ from: string; to: string; }>

Get the currently selected date-range.

Returns

Type: Promise<{ from: string; to: string; }>

Dependencies

Used by

Depends on

Graph


Built with StencilJS