brixxbox Wiki
Ask or search…
K

onDataTransform

The event can be used to transform a datasource line.
This function is often used to transform a calender event object. Called once pre received record. Must return a calender event.

Example 1

Modifiy an existing record, to keep all the information but add new properties for the event
eventArgs.details.title = eventArgs.details.terTitle;
eventArgs.details.description = eventArgs.details.terLongText; //This will be the tooltip text
eventArgs.details.start = eventArgs.details.terStart;
eventArgs.details.end = eventArgs.details.terEnd;
return eventArgs.details;

Example 2

Create a new record.
return {
start: eventArgs.details.terStart
end: eventArgs.details.terEnd
title: eventArgs.details.terTitle
}