Skip to main content

Inline Date Picker

InlineDatePicker component is part of the date picker components. An inline date picker is a date selection component that is embedded directly in the page rather than being displayed in a dialog or a separate page.

info

For more details about Vuetify’s usage of InlineDatePicker component, click InlineDatePicker page.
For more prop explanations, click Vuetify InlineDatePicker API page.

Props

AttributeDescriptionTypeDefault
clearableAdd input clear functionality, default icon is Material Design Icons mdi-clear.booleantrue
compareValueQLegend is used for comparison values. You can look at the QLegend document.stringundefined
compareTextQLegend is used for comparison values. You can look at the QLegend document .stringundefined
compareTableValueQLegend is used for comparison values. You can look at the QLegend document.stringundefined
dateNowMakes today the starting date.booleanfalse
displayFormatDisplays date format given by the user.string-
discardSettingsOverrides the displayDateFormat value defined in the Settings File.booleanfalse
headerColorDefines the header color.string-
hideDetailsHides hint and validation errors. When set to auto messages will be rendered only if there’s a message (hint, error message, counter value etc) to display.boolean | stringundefined
hintHint text.stringundefined
hideMenuControls the drop-down menu.booleanfalse
firstDayOfWeekSets the first day of the week, starting with 0 for Sunday.string-Number'Pick a date'
multipleAllows the selection of multiple dates.booleanfalse
rangeAllows the selection of date range.booleanfalse
disabledDisables interaction with the picker.booleanfalse
labelDatepicker text-field label value.string'Pick a date'
localeSets the locale. Accepts a string with a BCP 47 language tag.string'tr'
minMaximum allowed date/month (format that defined at settings file).string-
maxMaximum allowed date/month (format that defined at settings file).string-
labelDatepicker text-field label value.string'Pick a date'
soloChanges the style of the input.booleanfalse
soloInvertedReduces element opacity until focused.booleanfalse
prependInnerIconPrepends an icon inside the component's input, uses the same syntax as Iconstring'mdi-calendar'.
noTitleHides the picker title.booleantrue
tabindexIt determines the order of switching from one component to another with the tab key.stringundefined
titleDateFormatAllows you to customize the format of the date string that appears in the title of the date picker.function-
typeDetermines the type of the picker - date for date picker, month for month picker.stringundefined
noTitleHide the picker title.booleanfalse
persistentHintForces hint to always be visible.booleanfalse
placeholderSets the input’s placeholder text.stringundefined
prependInnerIconPrepends an icon inside the component’s input, uses the same syntax as icon.string'mdi-calendar'
readonlyDatepickerPrevents selection from the menu.booleanfalse
readonlyTextFieldPrevents changing of input field.booleanfalse
rulesYou can find more detailed information here.array[]
soloChanges the style of the input.booleanfalse
separateCharShows the character between two dates when displayed.stringundefined
soloInvertedReduces element opacity until focused.booleanfalse
openOnlyIconClickIt opens only when you click on the icon.booleanfalse
valueDate picker model (ISO 8601 format, YYYY-mm-dd or YYYY-mm).arraystring
visibleVisibility of InlineDatePicker componentbooleantrue
willAttachAllows the drowdown menu to open in a fixed manner, independent of the scroll.booleantrue

Events

AttributeDescription
onClearRuns when the entered value is cleared
blurEvent fires when an element has lost focus
focusThe focus event fires when an element has received focus

Component Samples

Multiple

image

Range

image

Disabled

image

Min & Max

image

Label

image

Allowed Dates

image

AllowdDates

Weekend and Holidays

image

DisplayFormat and DiscardSettings

DiscardSettings property is set to true to override the displayDateFormat value defined in the Settings File. When DiscardSettings property is set to true, DD/MM/YYYY format is used if the displayFormat value is not provided, otherwise the provided value is used.

image

VinlineDatePicker

TitleDateFormat

You need to define the titleDateFormat function of the InlineDatePicker component in the Page Component's PostRender event.


TitleDateFormat

How to Format InlineDatepicker Component?

We have 2 parameters for formatting: serviceDateFormat and the displayDateFormat.

ServiceDateFormat

The service format specifies in which format the date value from the service should be set.

DisplayDateFormat

The display format indicates in which format the selected date should be displayed.

We manage these formats with settings-proxy.js and/or settings.yaml files. You can customize them as desired, based on your needs. The date formats are the same as the rally formats:

displayDateFormat: 'dd/MM/yyyy' serviceDateFormat: 'YYYYMMDD'

image

Samples Qjson

VınlineDatepickerDeleteValue
AllowdDates_DoubleDaysOfTheMonth
AllowdDates_WorkingDaysOfTheMonth
InlineDatepickerMaxMin
InlineDatepickerReset
DatepickerDatenow
DatePickerExampleApp