Skip to content
On this page

Datetimepicker

An input with a simple dropdown/modal for selecting a date and time, uses native datetimepicker for mobile

Base

Show code

Footer slot

Show code

Inline

Show code

Min/Max Datetime

Show code

Class props


How does Class props inspector work?
Class propDescriptionPropsSuffixes
datepickerWrapperClassClass of the Datepicker wrapper.
timepickerWrapperClassClass of the Timepicker wrapper.


Props

Prop nameDescriptionTypeValuesDefault
appendToBodyboolean-
autocompleteNative options to use in HTML5 validationstring-
datepickerobject-
datetimeCreatorfunc-Default function (see source code)
datetimeFormatterfunc-
datetimeParserfunc-
disabledboolean-
editableboolean-false
expandedMakes input full width when inside a grouped or addon fieldboolean-
iconIcon name to be addedstring-
iconPackIcon pack to usestringmdi, fa, fas and any other custom icon pack
iconRightstring-
iconRightClickableboolean-
inlineboolean-
localestring|array-
From config

{
   locale: undefined
}
maxDatetimedate-
maxlengthSame as native maxlength, plus character counternumber|string-
minDatetimedate-
mobileNativeboolean-true
modelValuedate-
openOnFocusboolean-
overrideboolean-
placeholderstring-
positionstring-
roundedMakes the element roundedboolean-
sizestring-
statusIconShow status icon using field and variant propboolean-
From config

{
   "statusIcon": true
}
timepickerobject-
useHtml5ValidationEnable html 5 native validationboolean-
From config

{
   "useHtml5Validation": true
}
validationMessageThe message which is shown when a validation error occursstring-

Events

Event namePropertiesDescription
active-change
icon-right-click
change-month
change-year
blur
focus
invalid
update:modelValue

Slots

NameDescriptionBindings
footer

Style

📄 Full scss file

CSS VariableSASS VariableDefault

Released under the MIT License.