[英]How to create calendar with events
Hello i'm trying to make event calendar .您好,我正在尝试制作活动日历。 Maybe somebody give me idea how to because i dont know how to customize calendar I lost about 2-3 days and didn't do anything Tried to customize fullcalendar and nothing .
也许有人告诉我该怎么做,因为我不知道如何自定义日历,我丢失了大约 2-3 天并且没有做任何事情尝试自定义 fullcalendar 却什么也没做。 I hope on your support Thanks
希望得到您的支持 谢谢
Calendar image what i need:我需要的日历图像:
I've added a similar method to this date-picker .我已经向这个date-picker添加了一个类似的方法。 it's easy to use.
它很容易使用。 you still need to make a change in stylesheets because I didn't have time.
您仍然需要更改样式表,因为我没有时间。 but it gives you the idea how to start.
但它让你知道如何开始。
How to use it?如何使用它?
var datePicker = new Pikaday({
field: document.getElementById('date-picker'),
onSelect: (newDate) => {
// Here you can update this day with setSecondaryConfig method
},
onMonthChange: (year: number, month: number) => {
// here you can call for labels for this month using setSecondaryConfig method
},
onOpen: () => {
// or here you can fetch labels for the first month being shown
}
});
This works fine with sync API calls.这适用于同步 API 调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.