-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to integrate with VueJs #81
Comments
Would also love to know how to integrate this with vuejs |
@ikmadushan did you figure this one out? |
@scottybo i needed to mount a Vue component into the calendar event using template option, but unfortunately i couldn't do that. i think we need to pass the element as an argument to the template function to achieve this. |
Yes, you might be right. I have experienced it using React like this. class CalendarMain extends React.Component {
constructor() {
super();
this.options = {
defaultView: 'month',
useCreationPopup: true,
useDetailPopup: true,
month: {},
week: {}
};
}
componentDidMount() {
this.calendar = this.createCalendarMain();
}
componentDidUpdate() {
this.calendar.render();
}
createCalendarMain() {
return new Calendar('#calendar', this.options);
}
render() {
return (
<div>
<div id="calendar" style={{height: '600px'}}></div>
</div>
);
}
} |
Is there anyone who makes a vue wrapper? |
@dongsik-yoo it would be great if we can add something like below to the core. new Calendar('#calendar', {
...
template: {
milestone: function(schedule, element) {
// element can be used to mount a Vue or React instance to these templates
},
}
}) Currently it doesn't pass |
@lkmadushan I can offer the container element. Is it enough for Vue or React?. |
@dongsik-yoo yep, only schedule's element would be enough :) |
@dongsik-yoo When do you plan to make a new release with above features? :) I'm planning to use tui calendar for my next project. |
@lkmadushan I'm checking it on that how I implement it. |
@lkmadushan I will be able to offer the schedule elements by event For example, // event handlers
cal.on({
'afterRender': function(e) {
var schedule = e.schedule;
var element = cal.getElement(schedule.id, schedule.calendarId);
// use element for Vue or React
}
});
If no problem, I hope that the feature will be included in a new release v1.2.0 on 17th May. |
@lkmadushan Please check #109 for your request about the element. It'll be released after QA with v1.2.0, if no problem. |
@dongsik-yoo sorry for late reply. i'm bit busy these days. I think this would be ok, for different schedules we can check type of it and render corresponding Vue component :) |
It's okay. We'll release v1.2.0 tomorrow. We are doing QA. |
@lkmadushan Here v1.2.0 is. |
@dongsik-yoo Thank you very much! |
Vue.js wrapper for TOAST UI Calendar :) https://github.com/lkmadushan/vue-tuicalendar Example: https://codesandbox.io/s/0wm308qol |
@dongsik-yoo i'm getting below error when updating a schedule using creation popup. Check this out: https://codesandbox.io/s/9j4yn57nnr
Do yo have you any idea? |
It's a bug. I found the cause. |
@lkmadushan Can you create a new issue for that? |
@dongsik-yoo sure! #122 |
@lkmadushan Is this issue finished? If it is, please close this issue. |
Hello lkmadushan, |
Is this what you want? https://codesandbox.io/s/kw1o37l195 Check App.vue In my previous example each event is a Vue Component so you have to style component it self. In here i have removed @after-render-schedule event so it uses default event template. |
Yes! Thank you! Any chance you are available for tutoring? contact you through your website? ill remove this comment tonight |
@luzioluna For sure. let me know if you need any help. Skype: kalpa.lkm I think your question will help some else later. So keep it :) |
sure. you've already advanced me a great deal on my project with this wrapper and your advice. i will get a hold of you. |
@luzioluna Thank you :) I think it's because fixed dates. Need to update it to relative dates |
thanks, sometimes I ask questions before I look at things, not a good habit. |
Hello everyone. There is a new TOAST UI Family. I think it's great grid and helpful for your Vue application. |
@dongsik-yoo that's cool. I will try to create a Vue component for that. Thanks :) BTW.. I would like to know, is there a timeline view in TUI Calendar? |
@lkmadushan Oh, not yet. There are several questions about timeline, but we don't have it yet. |
How do I integrate a Vue component into the calendar schedule view?
The text was updated successfully, but these errors were encountered: