How to use the fullcalendar.Calendar function in fullcalendar

To help you get started, we’ve selected a few fullcalendar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fullcalendar / fullcalendar-angular / dist / ng-fullcalendar.es5.js View on Github external
singleRes = calendar[options].apply(calendar, args);

				if (!i) {
					res = singleRes; // record the first method call result
				}
				if (options === 'destroy') { // for the destroy method, must remove Calendar object data
					element.removeData('fullCalendar');
				}
			}
			else {
				FC.warn("'" + options + "' is an unknown FullCalendar method.");
			}
		}
		// a new calendar initialization
		else if (!calendar) { // don't initialize twice
			calendar = new fullcalendar.Calendar(element, options);
			element.data('fullCalendar', calendar);
			calendar.render();
		}
	});
github fullcalendar / fullcalendar-angular / dist / ng-fullcalendar.js View on Github external
singleRes = calendar[options].apply(calendar, args);

				if (!i) {
					res = singleRes; // record the first method call result
				}
				if (options === 'destroy') { // for the destroy method, must remove Calendar object data
					element.removeData('fullCalendar');
				}
			}
			else {
				FC.warn("'" + options + "' is an unknown FullCalendar method.");
			}
		}
		// a new calendar initialization
		else if (!calendar) { // don't initialize twice
			calendar = new fullcalendar.Calendar(element, options);
			element.data('fullCalendar', calendar);
			calendar.render();
		}
	});
github primefaces / primereact / src / components / fullcalendar / FullCalendar.js View on Github external
initialize() {
        this.calendar = new Calendar(this.element, this.config);
        this.calendar.render();

        if (this.props.events) {
            this.calendar.removeAllEventSources();
            this.calendar.addEventSource(this.props.events);
        }
    }
github primefaces / primereact / src / components / schedule / Schedule.js View on Github external
}
            };
    
            if (this.props.locale) {
                for (let prop in this.props.locale) {
                    config[prop] = this.props.locale[prop];
                }
            }
    
            if (this.props.options) {
                for (let prop in this.props.options) {
                    this.config[prop] = this.props.options[prop];
                }
            }
    
            this.calendar = new FullCalendar.Calendar(this.element, config);
            this.calendar.render();
            this.calendar.addEventSource(this.props.events);
        }
    }