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

How to hide elements in the hours row?

Asked by Eduardo Luis
1 year ago.

Hi,
How to hide those "looks like secnods" in every row but keep Hours every 15 minutes?
And ... How to hide 15 and 30 minutes?
Attached image...

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

This looks like the minute part which is included in the standard view. However, it doesn't display if you use timeHeaderCellDuration value other than 60.

I recommend checking the onBeforeTimeHeaderRender event handler - see how you set the HTML.

This seems to work fine:

onBeforeTimeHeaderRender: args => {
    args.header.html = args.header.time.toString("h:mm");
},
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.