For overriding the event HTML, use the .html property. In order to add a line break, use "<br/>":
dp.events.list = [
{
start: "2015-12-01",
end: "2015-12-05",
text: "Event 1",
id: 1,
resource: "R1",
tags: { username: "john" }
}
];
dp.onBeforeEventRender = function(args) {
args.data.html = args.data.text + "<br/>" + args.data.tags.usename;
};
You can also add html directly to the event data:
dp.events.list = [
{
start: "2015-12-01",
end: "2015-12-05",
text: "Event 1",
id: 1,
resource: "R1",
html: "Event 1<br/>John"
}
];
See also: