Daily, Weekly, Monthly & Yearly Views
Use the agenda object inside the view option to configure the agenda. type and size can be set as follows:
- day -
agenda: { type: 'day', size: 20 }can be configured for a single day or a range of days - week -
agenda: { type: 'week', size: 3 }can be configured for a single or multiple weeks - month -
agenda: { type: 'month' }can be configured for one or more months - year -
agenda: { type: 'year' }can be configured for one or more years
Interested in combining this with a calendar view? Check out the previous example →
Demo
Daily agenda
days
Weekly agenda
weeks
Monthly agenda
months
Yearly agenda
years
<script setup>
const myView = {
agenda: {
type: 'day ',
size: 2
}
}
</script>
<template>
<MbscEventcalendar :view="myView" />
</template>

SFC JSSFC TS
<script setup>
import {
getJson,
MbscEventcalendar,
MbscPage,
setOptions
} from '@mobiscroll/vue'
import { onMounted, ref } from 'vue'
setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
})
const myEvents = ref([])
const dayView = { agenda: { type: 'day' } }
const weekView = { agenda: { type: 'week' } }
const monthView = { agenda: { type: 'month' } }
onMounted(() => {
getJson(
'https://trial.mobiscroll.com/events/?vers=5',
(events) => {
myEvents.value = events
},
'jsonp'
)
})
</script>
<template>
<MbscPage>
<div class="mbsc-grid">
<div class="mbsc-row">
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Daily agenda</div>
<MbscEventcalendar :data="myEvents" :view="dayView" />
</div>
</div>
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Weekly agenda</div>
<MbscEventcalendar :data="myEvents" :view="weekView" />
</div>
</div>
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Monthly agenda</div>
<MbscEventcalendar :data="myEvents" :view="monthView" />
</div>
</div>
</div>
</div>
</MbscPage>
</template>
<script setup lang="ts">
import {
getJson,
MbscEventcalendar,
MbscPage,
setOptions
} from '@mobiscroll/vue'
import type { MbscCalendarEvent, MbscEventcalendarView } from '@mobiscroll/vue'
import { onMounted, ref } from 'vue'
setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
})
const myEvents = ref<MbscCalendarEvent[]>([])
const dayView: MbscEventcalendarView = { agenda: { type: 'day' } }
const weekView: MbscEventcalendarView = { agenda: { type: 'week' } }
const monthView: MbscEventcalendarView = { agenda: { type: 'month' } }
onMounted(() => {
getJson(
'https://trial.mobiscroll.com/events/?vers=5',
(events: MbscCalendarEvent[]) => {
myEvents.value = events
},
'jsonp'
)
})
</script>
<template>
<MbscPage>
<div class="mbsc-grid">
<div class="mbsc-row">
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Daily agenda</div>
<MbscEventcalendar :data="myEvents" :view="dayView" />
</div>
</div>
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Weekly agenda</div>
<MbscEventcalendar :data="myEvents" :view="weekView" />
</div>
</div>
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Monthly agenda</div>
<MbscEventcalendar :data="myEvents" :view="monthView" />
</div>
</div>
</div>
</div>
</MbscPage>
</template>