Vue Range Event Date Selection

Use the range picker for a new event creation. Let people pick start and end dates when adding events.

Dynamically switch between date only and date-time entry based on an "all-day" switch by changing the controls to 'date' or 'datetime'.

Interested in an event calendar solution?  Check out the event calendar →
Get started with this example

Demo

<script setup>
const allDay = ref(false)
const showAs = ref('busy')
const myControls = ref(['datetime'])
const startInput = ref(null)
const endInput = ref(null)

function allDayChange() {
  myControls.value = allDay.value ? ['date'] : ['datetime']
}
</script>

<template>
  <MbscInput label="Title" placeholder="Name of the event" />
  <MbscInput label="Location" placeholder="Where will it be?" />
  <MbscSwitch label="All day" v-model="allDay" @change="allDayChange" />
  <MbscDatepicker
    select="range"
    :controls="myControls"
    :startInput="startInput"
    :endInput="endInput"
  />
  <MbscInput ref="startInput" label="Start" placeholder="Event start" />
  <MbscInput ref="endInput" label="End " placeholder="Event end" />
  <MbscSegmentedGroup v-model="showAs">
    <MbscSegmented value="busy">Show as busy</MbscSegmented>
    <MbscSegmented value="free">Show as free</MbscSegmented>
  </MbscSegmentedGroup>
  <MbscTextarea label="Notes" placeholder="Enter notes, URL, comments" />
</template>

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.