search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How can I change the name of the event groups?

Asked by Anonymous
1 year ago.

Hello! I have a group of events per day, which are automatically grouped. Currently the automatic grouping appears as "2 events", how could I change the text to say for example: 2 reservations?"

Answer posted by Dan Letecky [DayPilot]
1 year ago.

You can set custom HTML displayed by the group using onBeforeGroupRender event:
https://api.daypilot.org/daypilot-scheduler-onbeforegrouprender/

onBeforeGroupRender: args => {
  args.group.html = `${args.group.count} reservations`;
}

Note that the text set using args.group.html will not be HTML-encoded (see also https://doc.daypilot.org/scheduler/xss-protection/).

Comment posted by Anonymous
1 year ago.

Thanks!!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.