DateComponent

This component allows you to create a date component. It depends on SelectComponent, ValidationObserver, extend and required from Vee Validate.

Example

DateComponent

<date-component
    label="Label",
    placeholder="Placeholder",
    :min-date-time:"new Date()",
    :show-clear-button:"true",
    :show-now-button:"true",
    :append-to-body:"true",
    position="is-top-right"
>
    <slot name="input-label" />
</date-component>

Props

NameDescriptionTypeRequiredDefault
valueInner value of the componentfalsenull
horizontalAllows you to indicate if the component will be horizontal or notBooleanfalsetrue
formatAllows you to indicate the format of the returned dateStringfalse"DD/MM/YYYY"
showClearButtonAllows you to indicate if the clear bottom will be displayed or notBooleanfalsefalse
showTodayButtonAllows you to indicate if the today button will be displayed or notBooleanfalsefalse
minDateAllows you to indicate the selectable min dateDatefalse-
maxDateAllows you to indicate the selectable max dateDatefalse-
editableAllows you to indicate if the date is editableBooleanfalsefalse
isRequiredAllows you to indicate if the date is requiredBooleanfalsefalse
labelInsideAllows you to indicate if the label will be inside of the inputBooleanfalsefalse
labelOnBorderAllows you to indicate if the label will be on the border of the inputBooleanfalsefalse
mobileNativeSame as mobile-native in Buefy b-datepickerBooleanfalsefalse
typeSame as type in Buefy b-datepickerStringfalseundefined
rangeSame as range in Buefy b-datepickerBooleanfalsefalse
appendToBodySame as append-to-body in Buefy b-datepickerBooleanfalsefalse
positionSame as position in Buefy b-datepickerStringfalseundefined
mobileModalSame as mobile-modal in Buefy b-datepickerBooleanfalsetrue
sizeSame as size in Buefy b-datepickerStringfalseundefined
validationModeValidation mode to ValidationProviderStringfalse"aggressive"
hideValidationAllows you to indicate if show validation or notBooleanfalsefalse
localeLocale string {en, es ...} for display language on componentStringfalse"en"
showWeekNumberAllows you to indicate if show week number or notBooleanfalsefalse
weekNumberClickableAllows you to indicate if week number will be clickable or notBooleanfalsefalse
firstDayOfWeekAllows you to indicate the first number of the weekNumberfalse4
unselectableDaysOfWeekAllows you to indicate if days of eek will be unselectableBooleanfalsefalse

Events

Event NameDescriptionParameters
input--