Reputation: 31
I am using Vuetify calendar for making appointments. I tried to customize the default header of the calendar using slots but not getting expected result.Wants to customize it like as shown in the image ...
Code
<v-calendar ref="calendar" :now="today" :value="today" :events="events" color="primary" type="week">
<template v-slot:day-header="{date}">
<v-btn color="success">{{date}}</v-btn>
</template>
Codepen for the same: https://codepen.io/spider007/pen/YzyGgPY
Upvotes: 1
Views: 1994
Reputation: 9
You can use the attribute weekday-format with a custom function the input is the event and then you can return custom headings
Upvotes: 1