简体   繁体   English

在全日历中将信息添加到一个月中的几天

[英]Add information to days in a month in fullcalendar

I Want to develop a human resource application using Fullcalendar , i want know how to Popup a nice window by clicking on each day to get some information from user. 我想使用Fullcalendar开发人力资源应用程序,我想知道如何通过每天单击以从用户那里获取一些信息来弹出一个漂亮的窗口。 Form is similar for each day and users have to put their working hours in it . 表单每天都是相似的,用户必须在其中输入工作时间。 Then by clicking on save all the information must save into server and the color of that day in calender should become green which means users already filed this day. 然后单击保存,所有信息必须保存到服务器中,并且日历中当天的颜色应变为绿色,这意味着用户已在这一天提交了文件。

You can use the dayClick method to detect clicking on a day and change color. 您可以使用dayClick方法来检测一天的点击并更改颜色。

$('#calendar').fullCalendar({
    dayClick: function(date, jsEvent, view) {
        $(this).css('background-color', 'green');
        //create window here
        alert('create window');
    }
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 全日历:每月某天的复选框 - Fullcalendar: checkboxes on the days of the month Fullcalendar月视图中下个月的开始和结束日期 - Start and end days of the next month in Fullcalendar month view 如何在全日历中将上个月和下个月的可点击日期设为非可点击日期? - How to NON clickable dates from last and next month days in fullcalendar? JavaScript添加天数不增加月份 - JavaScript add days not incrementing the month 如何更改Fullcalendar一个月的天数? - How can i change number of days in a month for Fullcalendar? 在fullcalendar.io中仅显示当月的日期和事件 - Show days and events only of the current month in the fullcalendar.io 在FullCalendar的月份视图中为日期范围添加颜色 - Add color to a date range in month view in FullCalendar FullCalendar-如何每天添加额外信息 - FullCalendar - How to add extra information to each day Fullcalendar 调度程序限制屏幕上的月视图并启用滚动条(屏幕上 15 天 + 滚动 15 天) - Fullcalendar scheduler limit month view on screen and enable scroller (15 days on screen + 15 days to scroll) fullcalendar:我怎样才能获得相关查看月份的第一天和最后一天(而不是上一个\\下个月的天) - fullcalendar: how can i get the first and last day of the relevant viewed month (and not the days of of the prev \ next month)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM