简体   繁体   English

全日历下拉菜单。 怎么做?

[英]Fullcalendar dropdown. How to make it?

Is there any way to make fullcalendar make dropdown functionality same as Bootstrap Datepicker? 有什么方法可以使全日历make下拉功能与Bootstrap Datepicker相同? Like on this picture. 喜欢这张照片。 在此处输入图片说明

There's already an open and accepted issue, requesting this, that you can follow here: https://code.google.com/p/fullcalendar/issues/detail?id=225 您可以按照以下要求进行公开和接受的问题: https : //code.google.com/p/fullcalendar/issues/detail?id=225

Anyway, you could use, for example, jqueryUi datePicker and detect when its changed using onSelect event. 无论如何,您可以使用例如jqueryUi datePicker并使用onSelect事件检测其更改时间。 Then, you just need to change the date of your fullCalendar. 然后,您只需要更改fullcalendar的日期。

So you could have something like: 因此,您可能会遇到以下情况:

$(".date").datepicker({
  onSelect: function(dateText) {
       var selectedDate = this.value;
       $('#calendar').fullCalendar( 'gotoDate', selectedDate );
  }
});

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM