Comments (4)
Solved my own issue here. I had to use a fat arrow function, like so:
copyWeek: {
text: 'Copy week',
click: () => this.$set(this, "copyDialogVisible", true)
}
Would be nice to have this in the documentation though :)
from fullcalendar-vue.
It's easy. You need something like this:
<template>
<div>
<full-calendar :custom-buttons="customButtons" :header="header" />
</div>
</template>
<script>
// ... stuff
data() {
return {
header: {
left: 'prev,next today',
center: 'title',
right: 'myLink' // this will place the button on the right hand side
},
customButtons: {
myLink: {
text: "Take me to your leader",
click: () => this.$router.push({name: "yourLeader"}) // assuming you use Vue Router
}
}
}
}
// ... more stuff
</script>
P.S. Next time please use SO for questions like these.
from fullcalendar-vue.
Ok and thanks techouse - will use SO ongoing. Ta
from fullcalendar-vue.
I'm trying to create a custom button on my Vue FullCalendar. I just want a button with a link.
Any chance you can give me a pointer.
Currently I have the following:
<FullCalendar
:customButtons="customButtons"
:header="calHeader">
At that point I'm a bit lost at what to do. Something like this in my methods object? But it doesn't work as I know I'm not doing the methods right. Not sure how to format.
Any help appreciated and hope not de-railing original thread too much. Ta
customButtons: function() {
return {
custom1: {
text: "Copy week",
click: () => alert("clicked the custom button!")
}
};
},
calHeader() {
return {
left: "month,agendaWeek,agendaDay custom1",
center: "title",
right: "custom2 prevYear,prev,next,nextYear"
};
}
from fullcalendar-vue.
Related Issues (20)
- i found a bug in Timeline ,when set eventMaxStack.i have a demo address,help me please. HOT 1
- resourceTimelineDay v-slot resourceLabelContent only work with column one HOT 2
- Add support for Vue Router and Vuex HOT 5
- Integration for nuxt HOT 1
- JSX issue when using in Vue 3 with Typescript HOT 8
- TypeError: Cannot set properties of undefined (setting 'VueFullcalendar') HOT 1
- Vue3: Custom event component issue: No root instance for app HOT 1
- More than 1 full calendar on the same page. HOT 1
- Event change class between determinate hours HOT 1
- Render `eventContent` in the context of the main Vue application HOT 1
- Using slots breaks optimized rendering HOT 1
- __vite_ssr_import_1__ is not defined when trying to implement FullCalendar in nuxt3 project HOT 1
- CDN triggers "Uncaught TypeError: d is undefined" and so doesn't seem to run HOT 2
- Global.vue is not a function HOT 1
- Importing fullcalendar component breaks type checking with vue-tsc HOT 4
- Horizontal scroll position on timelineMonth resets when navigating to the next day HOT 1
- dayMinWidth: No ScrollGrid implementation HOT 1
- Createapp() called for every event in fullcalendar vue3 HOT 5
- fullcalender not showing time correctly on daygrid view HOT 2
- This issue tracker has moved
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fullcalendar-vue.