lkmadushan / vue-tuicalendar Goto Github PK
View Code? Open in Web Editor NEWVue.js wrapper for TOAST UI Calendar
License: MIT License
Vue.js wrapper for TOAST UI Calendar
License: MIT License
Hello,
I have some rendering problems and I don't know how to solve them because this.$refs.calendar.fireMethod('render')
doesn't do the trick.
Basically the month view does not render while the others work fine on the initial load.
Also when I use next
or prev methods on any view it stops rendering, but if i change the view to something else then back it works again:
Any ideeas?
Thank you!
I used "npm run build" to generate vue-tuicalendar.js and use it in my page.
<script type="text/javascript" src='./vendor/vue-tuicalendar/dist/vue-tuicalendar.js'></script>
<link href="./vendor/tui.calendar/dist/tui-calendar.min.css" rel="stylesheet">
<vue-tuicalendar ref="calendar"
:options="options"
:schedules="schedules"
@after-render-schedule="handler"
@before-render-schedule="handler"
@click-schedule="handler"></vue-tuicalendar></div>
Only get this:
<!--function(e,n,r,i){return Pt(t,e,n,r,i,!0)}-->
How can I use compiled js? Thanks
Vue.use('VueTuicalendar') ;
Vue.component('vue-tuicalendar', vueTuicalendar) ;
...
options:{
defaultView: 'week'
},
schedules: [
{
id: "1",
calendarId: "1",
title: "A schedule",
category: "time",
dueDateClass: "",
start: "2018-05-22T22:30:00+09:00",
end: "2018-05-23T02:30:00+09:00"
},
{
id: "2",
calendarId: "1",
title: "Another schedule",
category: "time",
dueDateClass: "",
start: "2018-05-23T17:30:00+09:00",
end: "2018-05-24T17:31:00+09:00",
isReadOnly: true
}
]
...
handler() {
console.log("Handler") ;
}
Since this is quite new, I'm wondering how much support and future enhancements you envision to provide with this wrapper. I'm trying to determine if it's worth using this library or just writing my own wrapper.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.