Fullcalendar

(part of package 'Fullcalendar Component') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

The FullCalendar component is a Titanium Client wrapper around https://fullcalendar.io/. Note that some features require a premium FullCalendar license.

See https://fullcalendar.io/docs for more details.

This is a reference page; many components have detailed usage guides here.

Properties

styleClass

Type: Styleclass


themeSystem

Type: String Default Value: "standard"


tooltipExpression

The text expression to be shown as tooltip when hovering over the calendar events. Use double curly brackets to evaluate {{propertyName}} the event's properties. For non-standard properties, use {{extendedProps.yourPropertyName}}. Example

This is the event title:{{title}}. The event starts at: {{start}}. Description: {{extendedPropsdata.data.description}}

Type: String


Events

onDateClickMethodID(date,dateStr,dayEl,jsEvent,view,resource)

onDateClickMethodID will be called when the user clicks on a date or a time.

Parameters:


onDateDblClickMethodID(date,dateStr,dayEl,jsEvent,view,resource)

onDateClickMethodID will be called when the user double clicks on a date or a time.

Parameters:


onDatesSetMethodID(start,end,startStr,endStr,timeZone,view)

onDatesSetMethodID will be called after the calendar’s date range has been initially set or changed in some way and the DOM has been updated.

Parameters:


onDropMethodID(allDay,date,dateStr,draggedElement,jsEvent,resource,view)

onDropMethodID will be called when an external draggable element or an event from another calendar has been dropped onto the calendar.

Parameters:


onEventAddMethodID(event,relatedEvents)

onEventAddMethodID will be called after an event has been added to the calendar.

Parameters:

Returns: {Boolean}


onEventChangeMethodID(event,oldEvent,relatedEvents)

onEventChangeMethodID will be called after an event has been modified in some way.

Parameters:

Returns: {Boolean}


onEventClickMethodID(event,jsEvent,view)

onEventClickMethodID will be called when the user clicks an event.

Parameters:


onEventDblClickMethodID(event,jsEvent,view)

onEventDblClickMethodID will be called when the user dbl click an event.

Parameters:


onEventDragStartMethodID(event,jsEvent,view)

onEventDragStartMethodID will be called when event dragging begins.

Parameters:


onEventDragStopMethodID(event,jsEvent,view)

onEventDragStopMethodID will be called when event dragging stops.

Parameters:


onEventDropMethodID(event,relatedEvents,oldEvent,oldResource,newResource,delta,jsEvent,view)

onEventDropMethodID will be called when dragging stops and the event has moved to a different day/time.

Parameters:

Returns: {Boolean}


onEventLeaveMethodID(event,relatedEvents,draggedElement,view)

onEventLeaveMethodID will be called when on a calendar when one if its events is about to be dropped onto another calendar.

Parameters:

Returns: {Boolean}


onEventMouseEnterMethodID(element,eventObject,jsEvent,view)

onEventMouseEnterMethodID will be called when the user mouses over an event. Similar to the native mouseenter.

Parameters:


onEventMouseLeaveMethodID(element,event,jsEvent,view)

onEventMouseLeaveMethodID will be called when the user mouses out of an event. Similar to the native mouseleave.

Parameters:


onEventReceiveMethodID(event,relatedEvents,draggedElement,view)

onEventReceiveMethodID will be called when an external draggable element with associated event data was dropped onto the calendar. Or an event from another calendar.

Parameters:

Returns: {Boolean}


onEventRemoveMethodID(event,relatedEvents)

onEventRemoveMethodID will be called after an event has been removed from the calendar.

Parameters:

Returns: {Boolean}


onEventResizeMethodID(event,relatedEvents,oldEvent,endDateDelta,startDateDelta,jsEvent,view)

onEventResizeMethodID will be called when resizing stops and the event has changed in duration.

Parameters:

Returns: {Boolean}


onEventResizeStartMethodID(event,jsEvent,view)

onEventResizeStartMethodID will be called when event resizing begins.

Parameters:


onEventResizeStopMethodID(event,jsEvent,view)

onEventResizeStopMethodID will be called when event resizing stops.

Parameters:


onEventRightClickMethodID(event,jsEvent,view)

Parameters:


onEventsSetMethodID(events)

onEventsSetMethodID will be called after event data is initialized OR changed in any way.

Parameters:


onLoadingMethodID(isLoading)

onLoadingMethodID will be called when event or resource fetching starts/stops.

Parameters:


onMouseEnter(eventObject,jsEvent,view)

onMouseEnter will be called when the user mouses over an event. Similar to the native mouseenter.

Parameters:


onMouseLeave(eventObject,jsEvent,view)

onMouseLeave will be called when the user mouses out of an event. Similar to the native mouseleave.

Parameters:


onNavLinkDayClickMethodID(date,jsEvent)

onNavLinkDayClickMethodID when navLinks setting is true, will be called when the user clicks on a day. onDateClickMethodID will not be called in this scenario.

Parameters:


onNavLinkWeekClickMethodID(date,jsEvent)

onNavLinkWeekClickMethodID when navLinks setting is true, will be called when the user clicks on a week.

Parameters:


onResourceAddMethodID(resource)

onResourceAddMethodID will be called after a resource has been added to the calendar.

Parameters:

Returns: {Boolean}


onResourceChangeMethodID(oldResource,newResource)

onResourceChangeMethodID will be called after a resource has been modified in some way.

Parameters:

Returns: {Boolean}


onResourceRemoveMethodID(resource)

onResourceRemoveMethodID will be called after a resource has been removed from the calendar.

Parameters:

Returns: {Boolean}


onResourcesSetMethodID(resources)

onResourcesSetMethodID will be called after resource data is initialized OR changed in any way.

Parameters:


onSelectMethodID(start,end,startStr,endStr,allDay,jsEvent,view,resource)

onSelectMethodID will be called when a date/time selection is made.

Parameters:


onUnselectMethodID(jsEvent,view)

onUnselectMethodID will be called when the current selection is cleared.

Parameters:


onViewDidMountMethodID(view)

onViewDidMountMethodID will be called right after the view has been added to the DOM.

Parameters:


onViewWillUnmountMethodID(view)

onViewWillUnmountMethodID will be called right before the view will be removed from the DOM.

Parameters:


onWindowResizeMethodID(view)

onWindowResizeMethodID will be called after the calendar’s dimensions have been changed due to the browser window being resized.

Parameters:


API

addEvent(event,source)

Adds an event to calendar.

Parameters:

Returns: CustomType<svy-fullcalendar2.EventObject> The newly added event object.


addEventSource(source)

Dynamically adds an event source.

Parameters:


addResource(resource,scrollTo)

Allows programmatic rendering of a new resource on the calendar after the initial set of resources has already been displayed.

Parameters:


batchRendering(func)

A way to group operations that cause rerenders.

Parameters:

  • {Function} func The function containing the operations to group together.


changeView(viewName,dateOrRange)

Gets the View Object for the current view.

Parameters:

  • {String} viewName The name of the view to switch to (e.g., 'dayGridMonth', 'timeGridWeek').

  • {Object} [dateOrRange] Optional date or date range to navigate to within the specified view.


destroy()

Restores the container element to the state before FullCalendar was initialized.


formatDate(date,settings)

A method that formats a date into a string. It inherits the locale and time zone settings of the calendar it’s called on.

Parameters:

  • {Object} date The date object to be formatted.

  • {Object} settings An object containing formatting settings, such as locale and time zone preferences.

Returns: String The formatted date string based on the provided settings.


formatIso(date,omitTime)

Formats a date into an ISO8601 string. Outputs a UTC offset appropriate to the calendar it’s called on.

Parameters:

  • {Object} date The date to format.

  • {Boolean} [omitTime] Whether to omit the time portion from the formatted string.

Returns: String The formatted ISO8601 date string.


formatRangeCalendar(start,end,settings)

Formats two dates, a start and an end, into a string.

settings is an object that holds any of the date format config options. It also accepts the following additional properties: separator — what will be inserted between the two dates. a ' - ' by default isExclusive — if true, the given end date will be considered the exclusive end of the range, meaning date just before the end will be rendered instead. Useful if you need to format an exclusive-end whole-day range.

Parameters:

  • {Object} start The start date of the range to format.

  • {Object} end The end date of the range to format.

  • {Object} settings An object containing formatting settings and options.

Returns: String The formatted date range string.


formatRangeEvent(eventID,formatConfig)

Formats an event’s dates into a string.

Accepts a date formatter.

If the event doesn’t have an end, then the start will be formatted alone.

Parameters:

  • {String} eventID The unique identifier of the event.

  • {Object} formatConfig Configuration for formatting the dates (e.g., date format, locale).


fullCalendar(calendarOptions,renderOnCurrentView)

Initializes the FullCalendar component with the specified configuration options. If the calendar has already been initialized and any configuration options have changed, the calendar will be destroyed and re-rendered with the updated options.

Example:

 @type {svy-fullcalendar.FullCalendarOptions} var options = { eventSources: [ {events: [{ title: "lunch event", start: new Date() }]}], selectable: true, editable: true, initialView: 'dayGridMonth', } elements.fullcalendarElementName.fullCalendar(options);

**Parameters:**  
> - {[CustomType\<svy\-fullcalendar2\.FullCalendarOptions\>](#fullcalendaroptions)} calendarOptions                The configuration options for the FullCalendar component\.                 These options include properties for event sources, calendar behavior, styling, and views\.                 Refer to the FullCalendar documentation for the complete list of options\.
> - {[Boolean](../../../servoycore/dev-api/js-lib/boolean.md)} [renderOnCurrentView]                Indicates whether the calendar should re\-render in the current view when the configuration is updated\.                 If false, the calendar will reset to the default view\.

***
### getCalendarEvents\(\)

Getter for all calendar events\.



**Returns:** [Array\<CustomType\<svy\-fullcalendar2\.EventObject\>\>](#eventobject) An array containing all event objects currently displayed in the calendar\. 
***
### getChildren\(id\)

Returns a list of a resource’s child resources\.

**Parameters:**  
> - {[String](../../../servoycore/dev-api/js-lib/string.md)} id The unique identifier of the parent resource\.


**Returns:** [Array\<CustomType\<svy\-fullcalendar2\.ResourceObject\>\>](#resourceobject) An array of child resource objects\. 
***
### getDate\(\)

Returns a Date for the current date of the calendar\.



**Returns:** [Date](../../../servoycore/dev-api/js-lib/date.md) The current date displayed by the calendar\. 
***
### getEventById\(id\)

Gets a calendar event using a given ID\.

**Parameters:**  
> - {[String](../../../servoycore/dev-api/js-lib/string.md)} id The unique identifier of the event to retrieve\.


**Returns:** [CustomType\<svy\-fullcalendar2\.EventObject\>](#eventobject) The event object corresponding to the provided ID\. 
***
### getEventResources\(eventID\)

Gets the Resources associated with the given event\.

**Parameters:**  
> - {[String](../../../servoycore/dev-api/js-lib/string.md)} eventID The unique identifier of the event\.


**Returns:** [Array\<CustomType\<svy\-fullcalendar2\.ResourceObject\>\>](#resourceobject) An array of resources associated with the event\. 
***
### getEventSourceById\(id\)

Retrieves a specific Event Source Object\.

**Parameters:**  
> - {[String](../../../servoycore/dev-api/js-lib/string.md)} id The unique identifier of the event source to retrieve\.


**Returns:** [CustomType\<svy\-fullcalendar2\.EventSource\>](#eventsource) The event source object corresponding to the provided ID\. 
***
### getEventSources\(\)

Retrieves all Event Source Objects\.



**Returns:** [Array\<CustomType\<svy\-fullcalendar2\.EventSource\>\>](#eventsource) An array of all event source objects in the calendar\. 
***
### getFullCalendarOptions\(\)

Retrieves the current configuration options for the FullCalendar component\.  
These options define the behavior, appearance, and data sources of the calendar\.

**Example:**
```js
var options = elements.fullcalendarElementName.getFullCalendarOptions();
// Example usage: Update a specific calendar option and reinitialize the calendar
options.scrollTime = '09:00:00';
elements.fullcalendarElementName.fullCalendar(options, true);

Returns: CustomType<svy-fullcalendar2.FullCalendarOptions> The current configuration options for the FullCalendar component. If the options are not set, it returns `null`.


getOption(name)

Gets the value of an option from the calendar.

Parameters:

  • {String} name The name of the option to retrieve (e.g., 'theme', 'locale', or 'headerToolbar').

Returns: Object The current value of the specified option.


getParent(id)

Returns the parent Resource of a child resource.

Parameters:

  • {String} id The unique identifier of the child resource.

Returns: CustomType<svy-fullcalendar2.ResourceObject> The parent resource object.


getResourceById(resourceId)

A method that retrieves a specific Resource Object in memory.

Parameters:

  • {Object} resourceId The unique identifier of the resource to retrieve.

Returns: CustomType<svy-fullcalendar2.ResourceObject> The resource object corresponding to the provided ID.


getResourceEvents(id)

Gets the Resources associated with the given event.

Parameters:

  • {String} id The unique identifier of the event.

Returns: Array<CustomType<svy-fullcalendar2.ResourceObject>> An array of resources associated with the specified event.


getResources()

A method that retrieves all Resources, including children, as a single flat list.

Returns: Array<CustomType<svy-fullcalendar2.ResourceObject>> An array of all resource objects, including child resources.


getTopLevelResources()

A method that retrieves only top-level Resources.

Returns: Array<CustomType<svy-fullcalendar2.ResourceObject>> An array of top-level resource objects.


getView()

Gets the View Object for the current view.

Returns: CustomType<svy-fullcalendar2.ViewType> The view object representing the currently active calendar view (e.g., month, week, or day view).


gotoDate(date)

Moves the calendar to an arbitrary date.

Parameters:

  • {Date} date The target date to move the calendar to.


incrementDate(delta)

Moves the calendar forward/backward an arbitrary amount of time.

Parameters:

  • {Object} delta The time period to increment or decrement (e.g., { days: 7 } ).


moveDates(eventID,delta)

Will move an event’s start and end dates by a specific period of time.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {Object} delta The duration to move the start and end dates by (e.g., { days: 1 } ).


moveEnd(eventID,delta)

Will move an event’s end date by a specific period of time.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {Object} delta The duration to move the end date by (e.g., { days: 1 } ).


moveStart(eventID,delta)

Will move an event’s start date by a specific period of time.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {Object} delta The duration to move the start date by (e.g., { days: 1 } ).


next()

Moves the calendar one step forward (by a month or week for example).

If the calendar is in dayGridMonth view, will move the calendar forward one month. If the calendar is in dayGridWeek or timeGridWeek, will move the calendar forward one week. If the calendar is in dayGridDay or timeGridDay, will move the calendar forward one day.


nextYear()

Moves the calendar forward one year.


prev()

Moves the calendar one step back (by a month or week for example).

If the calendar is in dayGridMonth view, will move the calendar back one month. If the calendar is in dayGridWeek or timeGridWeek, will move the calendar back one week. If the calendar is in dayGridDay or timeGridDay, will move the calendar back one day.


prevYear()

Moves the calendar back one year.


refetchEventSource(eventSourceID)

Refetches events from all sources and rerenders them on the screen.

Parameters:

  • {String} eventSourceID The unique identifier of the event source to refetch.


refetchEvents()

Refetches events from all sources and rerenders them on the screen.


refetchResources()

Causes the resource data to be fetched and freshly rerendered.


removeEvent(eventID)

Removes an event from the calendar.

Parameters:

  • {String} eventID The unique identifier of the event to remove.


removeEventSource(eventSourceID)

Removes all events associated with this source and prevents it from being fetched again.

Parameters:

  • {String} eventSourceID The unique identifier of the event source to remove.


removeResource(id)

Programmatically removes a resource from the calendar.

Parameters:

  • {String} id The unique identifier of the resource to remove.


render()

Will initially render a calendar, or if it is already rendered, will rerender it.


scrollToTime(durationInput)

Programatically scroll the current view to the given time.

Parameters:

  • {Object} durationInput The duration to scroll to (e.g., '09:00:00').


select(dateOrObj,endDate)

A method for programmatically selecting a period of time.

Parameters:

  • {Object} dateOrObj The start date or object representing the range to select.

  • {Object} [endDate] Optional end date for the selection range.


setAllDay(eventID,allDay,settings)

Sets whether an event is considered all-day.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {Boolean} allDay Whether the event should be marked as all-day.

  • {Object} [settings] Optional settings for configuring the all-day property.


setDates(eventID,start,end,options)

Sets an event’s start date, end date, and allDay properties at the same time.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {Object} start The new start date for the event.

  • {Object} end The new end date for the event.

  • {Object} [options] Optional settings for configuring how the dates are set.


setEnd(eventID,date)

Sets an event’s end date.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {Object} date The new end date for the event.


setEventResources(eventID,resources)

Sets the Resources associated with the given event.

Parameters:

  • {String} eventID The unique identifier of the event.

  • {Array<ResourceObject>} resources An array of resources to associate with the event.


setExtendedPropEvent(eventID,name,value)

Modifies a single property in an events' extendedProps hash.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {String} name The name of the extended property to modify.

  • {Object} value The new value to assign to the specified extended property.


setExtendedPropResource(id,name,value)

Modifies a single property in an Resource Object’s extendedProps hash.

Parameters:

  • {String} id The unique identifier of the resource to modify.

  • {String} name The name of the extended property to modify.

  • {Object} value The new value to assign to the extended property.


setOption(name,value)

Sets an option for the calendar.

Parameters:

  • {String} name The name of the option to set (e.g., 'theme', 'locale', or 'headerToolbar').

  • {Object} value The value to assign to the specified option.


setPropEvent(eventID,name,value)

Modifies any of the non-date-related properties of an event.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {String} name The name of the property to modify (e.g., 'title' or 'color').

  • {Object} value The new value to assign to the specified property.


setPropResource(id,name,value)

Modifies any of the properties of a Resource Object.

Parameters:

  • {String} id The unique identifier of the resource to modify.

  • {String} name The name of the property to modify.

  • {Object} value The new value to assign to the property.


setStart(eventID,date,options)

Sets an event’s start date.

Parameters:

  • {String} eventID The unique identifier of the event to modify.

  • {Object} date The new start date for the event.

  • {Object} [options] Optional settings for configuring how the start date is set.


toPlainObjectEvent(eventID,settings)

Serializes an Event API Object to a plain object.

Parameters:

  • {String} eventID The unique identifier of the event.

  • {Object} [settings] Optional settings for customizing the serialization process.


toPlainObjectResource(id,settings)

Serializes a Resource API Object to a plain object.

Parameters:

  • {String} id The unique identifier of the resource.

  • {Object} [settings] Optional settings for customizing the serialization process.


today()

Moves the calendar to the current date.


unselect()

A method for programmatically clearing the current selection.


updateFullCalendar(option,value)

Updates a specific configuration option for the FullCalendar component and forces the calendar to re-render. This method allows you to dynamically adjust the calendar's behavior or appearance without requiring a full reinitialization.

Example:

// Update the scroll time to start the calendar at 1 PM
elements.fullcalendarElementName.updateFullCalendar('scrollTime', '13:00:00');

Parameters:

  • {String} option The name of the configuration option to update (e.g., 'scrollTime', 'editable').

  • {Object} value The new value for the specified configuration option.


Types

ArrayEventSource

scripting type: CustomType<svy-fullcalendar2.ArrayEventSource>

EventObject

scripting type: CustomType<svy-fullcalendar2.EventObject>

EventParsing

scripting type: CustomType<svy-fullcalendar2.EventParsing>

EventSource

scripting type: CustomType<svy-fullcalendar2.EventSource>

FullCalendar

scripting type: CustomType<svy-fullcalendar2.FullCalendar>

FullCalendarOptions

scripting type: CustomType<svy-fullcalendar2.FullCalendarOptions>

  • allDayClassNames

  • allDayContent

    • A Content Injection Input

    • Type: object

  • allDayDidMount

    • Callback called right after the element was added to the DOM.

    • Type: object

  • allDayMaintainDuration

    • Determines how an event's duration should be mutated when it is dragged from a timed section to an all-day section and vice versa.

    • Type: boolean

  • allDayText

    • The text titling the 'all-day' slot at the top of the calendar.

    • Type: tagstring

  • allDayWillUnmount

    • Callback called right before the element will be removed from the DOM.

    • Type: object

  • aspectRatio

    • The width-to-height aspect ratio of the calendar.

    • Type: double

  • bootstrapFontAwesome

    • Determines which icons are displayed in buttons of the headerToolbar/footerToolbar when Bootstrap 4 theming is on. This setting does not apply to Bootstrap 5 theming. Use buttonIcons instead.

    • Type: object

  • businessHours

    • Emphasizes certain time slots on the calendar. By default, Monday-Friday, 9am-5pm.

    • Type: object

  • buttonIcons

    • Icons that will be displayed in buttons of the headerToolbar/footerToolbar.

    • Type: object

  • buttonText

    • Text that will be displayed on buttons of the headerToolbar/footerToolbar.

    • Type: object

  • contentHeight

    • The height of the view area of the calendar. By default, this option is unset and the calendar's height is calculated by aspectRatio.

    • Type: object

  • customButtons

    • Defines custom buttons that can be used in the headerToolbar/footerToolbar.

    • Type: object

  • dateAlignment

    • Determines the first visible day of a custom view.

    • Type: string

  • dateIncrement

    • How far into the future/past the calendar navigates when prev/next is executed.

    • Type: object

  • dayCellClassNames

    • A ClassName Input for adding classNames to the <td> cell

    • Type: object

  • dayCellContent

    • A Content Injection Input. Generated content is inserted inside the inner-most wrapper of the day cell. It does not replace the <td> cell.

    • Type: object

  • dayCellDidMount

    • Callback called right after the <td> has been added to the DOM

    • Type: object

  • dayCellWillUnmount

    • Callback called right before the <td> will be removed from the DOM

    • Type: object

  • dayHeaderClassNames

    • A ClassName Input for adding classNames to the header <th> cell

    • Type: object

  • dayHeaderContent

    • A Content Injection Input. Generated content is inserted inside the inner-most wrapper of the header cell. It does not replace the <th> cell.

    • Type: object

  • dayHeaderDidMount

    • Callback called right after the <th> has been added to the DOM.

    • Type: object

  • dayHeaderFormat

    • Determines the text that will be displayed on the calendar's column headings.

    • Type: object

  • dayHeaderWillUnmount

    • Callback called right before the <th> will be removed from the DOM.

    • Type: object

  • dayHeaders

    • Whether the day headers should appear. For the Month, TimeGrid, and DayGrid views.

    • Type: boolean

  • dayMaxEventRows

    • In dayGrid view, the max number of stacked event levels within a given day. This includes the +more link if present. The rest will show up in a popover.

    • Type: object

  • dayMaxEvents

    • In, dayGrid view, the max number of events within a given day, not counting the +more link. The rest will show up in a popover.

    • Type: object

  • dayMinWidth

    • If specified, when the calendar gets narrow enough where day cells can no longer meet their dayMinWidth, horizontal scrollbars will appear.

    • Type: object

  • dayPopoverFormat

    • Determines the date format of title of the popover created by the moreLinkClick option.

    • Type: object

  • defaultAllDay

    • Determines the default value for each Event Object's allDay property when it is unspecified.

    • Type: boolean

  • defaultAllDayEventDuration

    • A fallback duration for all-day Event Objects without a specified end value.

    • Type: object

  • defaultRangeSeparator

    • The separator text used for date-formatting ranges throughout the API.

    • Type: string

  • defaultTimedEventDuration

    • A fallback duration for timed Event Objects without a specified end value.

    • Type: object

  • direction

    • The direction that elements in the calendar are rendered. Either left-to-right or right-to-left.

    • Type: object

  • displayEventEnd

    • Whether or not to display an event's end time.

    • Type: boolean

  • displayEventTime

    • Whether or not to display the text for an event's date/time.

    • Type: boolean

  • dragRevertDuration

    • Time it takes for an event to revert to its original position after an unsuccessful drag.

    • Type: int

  • dragScroll

    • Whether to automatically scoll the scroll-containers during event drag-and-drop and date selecting.

    • Type: boolean

  • dropAccept

    • Provides a way to filter which external elements can be dropped onto the calendar.

    • Type: object

  • droppable

    • Determines if external draggable elements or events from other calendars can be dropped onto the calendar.

    • Type: boolean

  • duration

    • Sets the exact duration of a custom view.

    • Type: object

  • editable

    • Determines whether the events on the calendar can be modified.

    • Type: boolean

  • endParam

    • A parameter of this name will be sent to each JSON event feed. It describes the exclusive end of the interval being fetched.

    • Type: string

  • eventAllow

    • Callback function to have exact programmatic control over where an event can be dropped.

    • Type: object

  • eventBackgroundColor

    • Sets the background color for all events on the calendar. Any CSS color format is supported.

    • Type: string

  • eventBorderColor

    • Sets the border color for all events on the calendar. Any CSS color format is supported.

    • Type: string

  • eventClassNames

    • A ClassName Input for adding classNames to the outermost event element. If supplied as a callback function, it is called every time the associated event data changes.

    • Type: object

  • eventColor

    • Sets the background and border colors for all events on the calendar. Any CSS color format is supported.

    • Type: string

  • eventConstraint

    • Limits event dragging and resizing to certain windows of time.

    • Type: object

  • eventContent

    • A Content Injection Input. Generated content is inserted inside the inner-most wrapper of the event element. If supplied as a callback function, it is called every time the associated event data changes.

    • Type: object

  • eventDataTransform

    • A hook for transforming custom data into a standard Event object.

    • Type: object

  • eventDidMount

    • Callback called right after the element has been added to the DOM. If the event data changes, this is NOT called again.

    • Type: object

  • eventDisplay

    • Controls which preset rendering style events use.

    • Type: string

  • eventDragMinDistance

    • How many pixels the user's mouse/touch must move before an event drag activates.

    • Type: int

  • eventDurationEditable

    • Allow events' durations to be editable through resizing.

    • Type: boolean

  • eventLongPressDelay

    • For touch devices, the amount of time the user must hold down before an event becomes draggable.

    • Type: int

  • eventMaxStack

    • For timeline view, the maximum number of events that stack top-to-bottom. For timeGrid view, the maximum number of events that stack left-to-right.

    • Type: int

  • eventMinHeight

    • In timeGrid view, the minimum height an event is allowed to be.

    • Type: int

  • eventMinWidth

    • In timeline view, the minimum width an event is allowed to be.

    • Type: int

  • eventOrder

    • Determines the ordering (sort) events within the same day.

    • Type: object

  • eventOrderStrict

    • Ensures the eventOrder setting is strictly followed.

    • Type: boolean

  • eventOverlap

    • Determines if events being dragged and resized are allowed to overlap each other.

    • Type: boolean

  • eventResizableFromStart

    • Whether the user can resize an event from its starting edge.

    • Type: boolean

  • eventShortHeight

    • In timeGrid view, the height threshold for when an event has a 'short' style.

    • Type: int

  • eventSourceFailure

    • Callback called when any of the event sources fails. Probably because an AJAX request failed.

    • Type: object

  • eventSourceSuccess

    • A function that gets called when fetching succeeds. It can transform the response. Gets called for any type of Event source.

    • Type: object

  • eventSources

  • eventStartEditable

    • Allow events' start times to be editable through dragging.

    • Type: boolean

  • eventTextColor

    • Sets the text color for all events on the calendar. Any CSS color format is supported.

    • Type: string

  • eventTimeFormat

    • Determines the time-text that will be displayed on each event.

    • Type: object

  • eventWillUnmount

    • Callback called right before the element will be removed from the DOM.

    • Type: object

  • events

    • An array of Event Objects that will be displayed on the calendar.

    • Type: object

  • expandRows

    • If the rows of a given view don't take up the entire height, they will expand to fit.

    • Type: int

  • firstDay

    • The day that each week begins.

    • Type: int

  • fixedWeekCount

    • Determines the number of weeks displayed in a month view.

    • Type: boolean

  • footerToolbar

    • Defines the controls at the bottom of the calendar.

    • Type: object

  • forceEventDuration

    • A flag to force assignment of an event's end if it is unspecified.

    • Type: boolean

  • handleWindowResize

    • Whether to automatically resize the calendar when the browser window resizes.

    • Type: boolean

  • headerToolbar

    • Defines the buttons and title at the top of the calendar.

    • Type: object

  • height

    • Sets the height of the entire calendar, including header and footer. By default, this option is unset and the calendar's height is calculated by aspectRatio.

    • Type: object

  • hiddenDays

    • Exclude certain days-of-the-week from being displayed.

    • Type: int[]

  • initialDate

    • The initial date displayed when the calendar first loads.

    • Type: object

  • initialView

    • The initial view when the calendar loads. The default value is 'dayGridMonth'

    • Type: string

  • isRTL

    • Displays the calendar in right-to-left mode.

    • Type: boolean

  • lazyFetching

    • Determines when event fetching should occur.

    • Type: boolean

  • locale

    • Current component locale (affects texts,formatting and weeknumber/first day of week).

    • Type: object

  • locales

    • Specify multiple locales with the ability to switch between them after pageload.

    • Type: object

  • longPressDelay

    • For touch devices, the amount of time the user must hold down before an event becomes draggable or a date becomes selectable.

    • Type: int

  • monthMode

  • moreLinkClassNames

    • A ClassName Input for adding classNames

    • Type: object

  • moreLinkClick

    • Determines the action taken when the user clicks on a 'more' link created by the dayMaxEventRows or dayMaxEvents options.

    • Type: object

  • moreLinkContent

    • A Content Injection Input

    • Type: object

  • moreLinkDidMount

    • Callback called right after the link has been added to the DOM

    • Type: object

  • moreLinkText

  • moreLinkWillUnmount

    • Callback called right before the link will be removed from the DOM

    • Type: object

  • navLinkDayClick

    • Determines what happens upon a day heading nav-link click.

    • Type: object

  • navLinkWeekClick

    • Determines what happens upon a week-number nav-link click.

    • Type: object

  • navLinks

    • Determines if day names and week names are clickable.

    • Type: boolean

  • nextDayThreshold

    • When an event's end time spans into another day, the minimum time it must be in order for it to render as if it were on that day.

    • Type: object

  • noEventsText

  • now

    • Explicitly sets the 'today' date of the calendar. This is the day that is normally highlighted in yellow.

    • Type: object

  • nowIndicator

    • Whether or not to display a marker indicating the current time.

    • Type: boolean

  • nowIndicatorClassNames

    • A ClassName Input for adding classNames.

    • Type: object

  • nowIndicatorContent

    • A Content Injection Input.

    • Type: object

  • nowIndicatorDidMount

    • Callback called after before the now indicator will be added to the DOM.

    • Type: object

  • nowIndicatorWillUnmount

    • Callback called right before the now indicator will be removed from the DOM.

    • Type: object

  • plugins

    • Plugins list. Currently this list will be auto filled in Titanium Client.

    • Type: object

  • progressiveEventRendering

    • When to render multiple asynchronous event sources in an individual or batched manner.

    • Type: boolean

  • rerenderDelay

    • The amount of milliseconds to wait before rerendering anything on a calendar.

    • Type: int

  • resourceAreaWidth

    • Determines the width of the area that contains the list of resources.Default: 30%.

    • Type: string

  • resources

    • Tells the calendar to display resources from an input.

    • Type: object

  • schedulerLicenseKey

    • The license key you must enter to use premium features.

    • Type: string

  • scrollTime

    • Determines how far forward the scroll pane is initially scrolled.

    • Type: object

  • scrollTimeReset

    • Whether the view should scroll to scrollTime every time the date range changes.

    • Type: boolean

  • selectAllow

    • Callback function to have exact programmatic control over where the user can select.

    • Type: object

  • selectConstraint

    • Limits user selection to certain windows of time.

    • Type: object

  • selectLongPressDelay

    • For touch devices, the amount of time the user must hold down before a date becomes selectable.

    • Type: int

  • selectMinDistance

    • The minimum distance the user's mouse must travel after a mousedown, before a selection is allowed. A non-zero value is useful for differentiating a selection from a dateClick.

    • Type: int

  • selectMirror

    • Whether to draw a 'placeholder' event while the user is dragging.

    • Type: boolean

  • selectOverlap

    • Determines whether the user is allowed to select periods of time that are occupied by events.

    • Type: boolean

  • selectable

    • Allows a user to highlight multiple days or timeslots by clicking and dragging.

    • Type: boolean

  • showNonCurrentDates

    • In month view, whether dates in the previous or next month should be rendered at all.

    • Type: boolean

  • slotDuration

    • The frequency for displaying time slots.

    • Type: object

  • slotEventOverlap

    • Determines if timed events in TimeGrid view should visually overlap.

    • Type: boolean

  • slotLabelDidMount

    • Callback called right after the element is added to the DOM.

    • Type: object

  • slotLabelFormat

    • Determines the text that will be displayed within a time slot.

    • Type: string

  • slotLabelInterval

    • The frequency that the time slots should be labelled with text.

    • Type: object

  • slotLabelWillUnmount

    • Callback called right before the element will be removed from the DOM.

    • Type: object

  • slotLaneClassNames

    • A ClassName Input.

    • Type: object

  • slotLaneContent

    • A Content Injection Input

    • Type: object

  • slotLaneDidMount

    • Callback called right after the element is added to the DOM.

    • Type: object

  • slotLaneWillUnmount

    • Callback called right before the element will be removed from the DOM.

    • Type: object

  • slotMaxTime

    • Determines the last time slot that will be displayed for each day. In line with the discussion about the Event object, it is important to stress that this should be specified as an exclusive end time.

    • Type: object

  • slotMinTime

    • Determines the first time slot that will be displayed for each day.

    • Type: object

  • slotMinWidth

    • Determines how wide each of the time-axis slots will be. Specified as a number of pixels. When not specified, a reasonable value will be automatically computed.

    • Type: int

  • snapDuration

    • The time interval at which a dragged event will snap to the time axis. Also affects the granularity at which selections can be made.

    • Type: object

  • startParam

    • A parameter of this name will be sent to each JSON event feed. It describes the start of the interval being fetched.

    • Type: string

  • stickyFooterScrollbar

    • Whether to fix the view's horizontal scrollbar to the bottom of the viewport while scrolling.

    • Type: object

  • stickyHeaderDates

    • Whether to fix the date-headers at the top of the calendar to the viewport while scrolling.

    • Type: object

  • themeSystem

    • Renders the calendar with a given theme system. Default: 'standard'

    • Type: string

  • timeZone

    • A time zone is a region of the world that serves as a context for displaying dates. It affects a Calendar instance. Default value is browser timezone.

    • Type: string

  • timeZoneParam

    • A parameter of this name will be sent to each JSON event feed. It describes the timezone of the startParam and endParam values, as well as the desired timezone of the returned events.

    • Type: string

  • titleFormat

    • Determines the text that will be displayed in the headerToolbar's title.

    • Type: object

  • titleRangeSeparator

    • Determines the separator text when formatting the date range in the toolbar title.

    • Type: string

  • unselectAuto

    • Whether clicking elsewhere on the page will cause the current selection to be cleared.

    • Type: boolean

  • unselectCancel

    • A way to specify elements that will ignore the unselectAuto option.

    • Type: string

  • validRange

    • Limits which dates the user can navigate to and where events can go.

    • Type: object

  • viewClassNames

    • A ClassName Input for adding classNames to the root view element. called whenever the view changes.

    • Type: object

  • viewDidMount

    • Callback called right after the view has been added to the DOM.

    • Type: object

  • viewHeight

  • viewWillUnmount

    • Callback called right before the view will be removed from the DOM

    • Type: object

  • views

    • The available views of this component.

    • Type: object

  • visibleRange

    • Sets the exact date range that is visible in a view.

    • Type: object

  • weekNumberCalculation

    • The method for calculating week numbers that are displayed with the weekNumbers setting.

    • Type: object

  • weekNumberClassNames

    • A ClassName Input for adding classNames

    • Type: object

  • weekNumberContent

    • A Content Injection Input.

    • Type: object

  • weekNumberDidMount

    • Callback called right after the week number div has been added to the DOM

    • Type: object

  • weekNumberFormat

    • If the rows of a given view don't take up the entire height, they will expand to fit.

    • Type: object

  • weekNumberWillUnmount

    • Callback called right before the week number div will be removed from the DOM

    • Type: object

  • weekNumbers

    • Determines if week numbers should be displayed on the calendar.

    • Type: boolean

  • weekText

    • The heading text for week numbers. Also affects weeks in date formatting.

    • Type: string

  • weekends

    • Whether to include Saturday/Sunday columns in any of the calendar views.

    • Type: boolean

  • windowResizeDelay

    • The time the calendar will wait to adjust its size after a window resize occurs, in milliseconds.

    • Type: int

FunctionEventSource

scripting type: CustomType<svy-fullcalendar2.FunctionEventSource>

GoogleCalendarEventSource

scripting type: CustomType<svy-fullcalendar2.GoogleCalendarEventSource>

JSONEventSource

scripting type: CustomType<svy-fullcalendar2.JSONEventSource>

ResourceObject

scripting type: CustomType<svy-fullcalendar2.ResourceObject>

ViewType

scripting type: CustomType<svy-fullcalendar2.ViewType>

iCalendarEventSource

scripting type: CustomType<svy-fullcalendar2.iCalendarEventSource>


Last updated

Was this helpful?