fullcalendar

fullcalendar日历控件知识点集合

时光总嘲笑我的痴心妄想 提交于 2020-04-07 15:14:19
1、基本语法: 首先,fullcalendar和JQUERY一样,以面向对象的方式来组织代码。当然,这里的面向对象仅仅是指可以把整个fullcalendar理解为一个类,这个类里包括有很多的属性、方法、委托(函数回调)作为成员变量。通过为这些成员变量赋值,即可实例化出一个符合自己需求的fullcalendar实例出来,即最终在浏览器里渲染出的日历。换句话说,我们所做的绝大多数工作就是按照fullcalendar的语法约定去配置出一个符合我们需求的fullcalendar实例。除非对于极少的特殊需求,fullcalendar向我们提供的接口不足以满足,才会去修改fullcalendar本身的js文件。 作为一种JQUERY插件,可以把fullcalendar理解为向 jquery对象集里添加了一个日历相关的对象,这个对象里相关方法、属性、的调用方式,即为fullcalendar的基本语法。整个语法分为两种: 第一种和日历本身无关,仅仅是利用fullcalendar提供的方法来进行字符串和日期间的转换,形式如下: $.fullCalendar.formatDate(); 第二种则是与和配置fullcalendar实例相关的,这最终会影响到fullcalendar在浏览器里的渲染,形式如下$(‘#someId’) .fullCalendar(content); $(‘#someId’

FullCalendar日历插件说明文档

我只是一个虾纸丫 提交于 2020-04-07 15:11:39
普通显示设置 属性 描述 默认值 header 设置日历头部信息。 如果设置为false,则不显示头部信息。包括left,center,right左中右三个位置,每个位置都可以对应以下不同的配置: title: 显示当前月份/周/日信息 prev: 用于切换到上一月/周/日视图的按钮 next: 用于切换到下一月/周/日视图的按钮 prevYear:用于切换到上一年视图的按钮 nextYear:用于切换到下一年视图的按钮 { left: 'title', center: '', right: 'today prev,next' } theme 是否允许使用jquery的ui主题,如果设置为true,则需要加载jquery ui相关css和js文件。 查看演示 false buttonIcons 设置header中使用的prev, next等变量对应按钮的样式,只有当theme为true时才有效,如果你调用了jQuery ui样式但又不想使用它的图标样式,可以将此属性设置为false { prev: 'circle-triangle-w', next: 'circle-triangle-e' } firstDay 设置一周中显示的第一天是哪天,周日是0,周一是1,类推。 0 isRTL 设置为ture时则日历从右往左显示,貌似是针对阿拉伯人设计的。 false weekends

How to show date and weekday name in fullcallendar?

天涯浪子 提交于 2020-04-07 05:25:32
问题 I am using a full calendar API api to display a calendar on my website inspired by the promo.com calendar which looks like this. Here is my solution using react js component import React, { useState, useEffect, useContext, useRef } from 'react'; import { Calendar as FullCalendar } from '@fullcalendar/core'; import googleCalendarPlugin from '@fullcalendar/google-calendar'; import dayGridPlugin from '@fullcalendar/daygrid'; import timeGridPlugin from '@fullcalendar/timegrid'; import

Select entire week in fullcalendar

落花浮王杯 提交于 2020-03-22 04:54:22
问题 im having trouble with the fullcalendar plugin where im trying to make an entire week selected in month view with just on click and then create an event of this. In other words, if you click any day on a specific week, that week will be highlighted and an event will be created. Thereafter this event should be entered into my database. This is what I have so far: <script> $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date

how to programmatically update the rendering of an event in fullcalendar

╄→尐↘猪︶ㄣ 提交于 2020-03-05 07:41:36
问题 I'm working on an app that already renders a calender using fullcalendar, whenever the page refreshes the time slots are always rendered with the correct colors using the event render callback. It also correctly changes the color of the time slot when the event is clicked upon, using the event click callback. This is all nice, however I'm trying to programmatically manipulate the renderings of the time slots based on some other stuff the user does after the calendar has fully loaded. In code

how to programmatically update the rendering of an event in fullcalendar

情到浓时终转凉″ 提交于 2020-03-05 07:41:06
问题 I'm working on an app that already renders a calender using fullcalendar, whenever the page refreshes the time slots are always rendered with the correct colors using the event render callback. It also correctly changes the color of the time slot when the event is clicked upon, using the event click callback. This is all nice, however I'm trying to programmatically manipulate the renderings of the time slots based on some other stuff the user does after the calendar has fully loaded. In code

FullCalendar, how to change event class on eventClick function

谁说胖子不能爱 提交于 2020-03-05 05:34:04
问题 My calendar initialize with events from ajax-php script. The events has a simple css class with green background-color for available events and red background-color for not available events. I need that when I click on a green event, it will turn red to set this not available. var calendarEl = document.getElementById('calendar'); $('#calendar').empty(); var calendar = new FullCalendar.Calendar(calendarEl, { plugins: ['timeGrid'], defaultView: 'timeGridWeek', minTime: '08:00:00', maxTime: '18

FullCalendar, how to change event class on eventClick function

China☆狼群 提交于 2020-03-05 05:31:10
问题 My calendar initialize with events from ajax-php script. The events has a simple css class with green background-color for available events and red background-color for not available events. I need that when I click on a green event, it will turn red to set this not available. var calendarEl = document.getElementById('calendar'); $('#calendar').empty(); var calendar = new FullCalendar.Calendar(calendarEl, { plugins: ['timeGrid'], defaultView: 'timeGridWeek', minTime: '08:00:00', maxTime: '18

How to copy event via CTRL + Drag&Drop in FullCalendar v4?

♀尐吖头ヾ 提交于 2020-03-05 03:23:12
问题 This example of copying events doesn't work in FullCalendar v4: https://codepen.io/ally-murray/details/JBdaBV Does anyone know how to make this functionality in the current version? Function "renderEvent" doesn't exist: $calendar.fullCalendar( "renderEvent", { resourceId, title: droppedEvent.title, start: startDate, end: endDate }, true); 来源: https://stackoverflow.com/questions/59747863/how-to-copy-event-via-ctrl-dragdrop-in-fullcalendar-v4

jabdp属性配置之表单属性

天涯浪子 提交于 2020-03-02 16:58:58
二、 表单属性 1、 显示名 表单的显示名新增的时候是可以随意修改的,但是保存后就不能再修改了,也不建议去修改,因为会出错。如果要修改如下图所示的名称,有两种方法: 第一是种修改表单的国际化设置,第二种是修改编辑页面设计该表单所处的tab分页(具体的修改方法请看第五章的布局属性)。 2、 表名 表示的是存在数据库中的名称。 3、 属性名 属性名是唯一的,用于区分各表单的一个属性。一经创建就不能修改。 SqlKey其实就是模块的属性名+表单属性名+字段名 4、 可见 用于控制表单是否可见。 5、 只读 目前此属性无效。 6、 列数 这个属性只有在新增表单的时候有用,一旦保存后这个属性就无效了。用于新增表单时控制表单的列数用的。 7、 列表高度 用于控制列表的高度。 8、 显示工具条 用于控制表单的工具条的显隐。这个属性对于主表是无效的,只对子表有用。 子表没有勾选上这个属性,效果如下: 勾选上后,效果如下: 9、 主表 该属性勾选上就表示当前表单是主表,每个模块只有一个表单可以勾选上这个属性,要不然会报错。 10、 是否虚拟表 该属性被勾选后,就不会在数据库中创建该表,而且这个表单就会同自定义表单一样,也就是说勾选上这个属性就是另类的自定义表单。 11、 是否列表显示 该属性表示让表单以列表的形式显示,一般只有自定义表单才会用到这属性,或者是勾选了【是否虚拟表】的表单。 12、