fullcalendar

Jquery日历控件

泪湿孤枕 提交于 2020-02-29 22:21:23
9个有用的jQuery日历和网页设计师的日期选择器插件 事件日历和日期选择器是是我们开发当中经常遇到的问题,这个时候我们就需要用jquery插件来实现,昨天我在做项目的时候,遇到了个问题就是如何显示倒计时问题,我这个时候就用jquery插件解决的,今天给大家分享9个其他的时间选择器插件 1。 FullCalendar FullCalendar是一个著名的jQuery日历插件,它提供了拖和下降功能,与谷歌日历整合,并能够通过JSON获取事件等功能。 设计人员可以轻松定制外观和感觉的日历,而开发人员可以利用用户触发的事件暴露挂钩。 2. Astonishing iCal-like Calendar 这是一个使用jQuery和CSS来构建一个iPhone风格的日历应用程序的教程。 3 jQuery UI的DatePicker jQuery UI的DatePicker的是一个高度可配置的插件,他添加到您的网页的日期选择器的功能。 您可以自定义的日期格式和语言,限制了可选择的日期范围,并容易添加按钮和其他导航选项。 4。 jMonthCalendar jMonthCalendar支持全月日历和事件。 这个插件的有趣的部分是它允许开发者开发互动的日历。 5 日期选择器 。 MIT和GPL许可证下发布的日期选择器是一个jQuery日历插件。 它有很多的选项和功能。 例如,你可以有多个日历组件

Rails Fullcalendar: add custom params to source url

江枫思渺然 提交于 2020-02-29 07:12:47
问题 I've got a Fullcalendar working in Rails. I've also added extra fields to the events table and a modal to get user input. When a record is saved, it automatically saves the user_id of the current user in the event table. I would like to have the calendar display with only the current_user's events. Right now the calendar.js.coffee file has this for getting the events data: eventSources: [{ url: '/events', }], How can I fix it so only the current_user's event data shows up? Do I put some code

Calendar Click By Style Color?

安稳与你 提交于 2020-02-25 13:18:07
问题 Hello Guy's is there anyway i can Click a Calendar By Color Style ? this is what i got : <td class="fc-day fc-wed fc-widget-content fc-future" data-date="2019-12-18" style="background-color: rgb(188, 237, 145); cursor: pointer;"><div><div class="fc-day-number">18</div><div class="fc-day-content"><div style="position: relative; height: 0px;"> </div></div></div></td> it dosn't matter what day choose i only want the Trigger Click to Click on the specific Color Style Here the Calendar Table ID :

Calendar Click By Style Color?

百般思念 提交于 2020-02-25 13:16:57
问题 Hello Guy's is there anyway i can Click a Calendar By Color Style ? this is what i got : <td class="fc-day fc-wed fc-widget-content fc-future" data-date="2019-12-18" style="background-color: rgb(188, 237, 145); cursor: pointer;"><div><div class="fc-day-number">18</div><div class="fc-day-content"><div style="position: relative; height: 0px;"> </div></div></div></td> it dosn't matter what day choose i only want the Trigger Click to Click on the specific Color Style Here the Calendar Table ID :

FullCalendar disable select day if is not allowed in selectAllow callback

走远了吗. 提交于 2020-02-25 09:40:09
问题 In the FullCalendar plugin, I need allow selection of days until a day or between dates. I put an example to explain better. https://codepen.io/stefanmalex/pen/Jjjjgmp I have an array with disallowed days: var disallowedDays = ['2019-10-17', '2019-10-23', '2019-10-26'] I added the 'selectAllow' callback: selectAllow: function (selectInfo) { if (disallowedDays.includes(selectInfo.startStr)) { return false; } return true; } This works perfectly if you select day per day, allows selection of all

FullCalendar recurring events create duplicates

杀马特。学长 韩版系。学妹 提交于 2020-02-24 12:17:07
问题 I am implementing a calendar for my new website I retrieve events from a BackEnd application and show result in a modal using fullcalendar. I also use recurring feature from fullcalendar (https://fullcalendar.io/docs/recurring-events) to facilitate the use of my calendar. Here something strange happened, When the user creates a recurring event on Sunday it is created twice with different dates whereas it works like a charm on the other days. Here is a simplify version of my code : <div> <div

fullcalendar “typeError: Cannot read property 'hasTime' of undefined”

天涯浪子 提交于 2020-02-24 05:29:52
问题 My jQuery Full Calendar was working fine until I added some events. I am now getting the error: fullcalendar "typeError: Cannot read property 'hasTime' of undefined" I think this is referring to range (JS lines in fullcal.js have to do with range normalization.( When I console.log(range) I get [object Object] . I have a start time, have added an end time and tried setting allday to true but its not working. see https://github.com/Brigette-Eckert/PacNW-Race-Calendar for repository. Screenshot

jQuery fullCalendar set background color for cell

本秂侑毒 提交于 2020-02-16 06:38:09
问题 I want to set background-color for cell with date 2014-10-22. I find a solution: date = new Date(y,m,d); date = $.fullCalendar.formatDate(date, 'yyyy-MM-dd'); $('.fc-day[data-date="'+ date +'"]').css('background-color', 'black'); but it does not work. Have some ideas? 回答1: CSS solution helped me fix this: For Today date:- .fc-today { background-color: #ffffff; } .ui-widget-content .ui-state-highlight { background-color: #fff !important; background-image: none; } For Other days : .fc-day {

Changing the position of img inside fc-content fullcalendar

三世轮回 提交于 2020-02-06 08:08:34
问题 I am trying to change the position of the image inside the .fc-content of fullcalendar without changing the content's position. if ((event.title).toString() == "Present") { eventElement.find("div.fc-content").prepend("<img src='" + event.imageurl + "' width='24' height='24' position = 'relative' float = 'right' bottom = '0'>"); } else if ((event.title).toString() == "Absent"){ eventElement.find("div.fc-content").prepend("<img src='" + event.imageurl + "' width='24' height='24' position =

Fullcalendar font-size of events

别等时光非礼了梦想. 提交于 2020-02-04 13:54:19
问题 When I change the font-size in the css like this: .fc-event { font-size: .85em;} The font-size looks perfect. But when I change the font-size with jquery it does not work. if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { $('#calendar').fullCalendar('changeView', 'agendaDay'); //=> OK $(".fc table ").css("font-size", "1.40em"); //=> OK $('.fc-event').css('font-size', '1.85em !important'); //=> NOT OK $('#calendar').fullCalendar('option',