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

Index of ResourceHeader

Asked by Anonymous
6 months ago.

How can I react to the click of a specific ResourceHeader?

I’m looking for something like this:

dp.onResourceHeaderClicked = function(args) {
  const index = args.resource.data.index;
};

https://javascript.daypilot.org/demo/scheduler/rowheadercolumns.html

For example, here I want to click on 'Building B' -> 'Room 302' -> 'Floor 1' respond.

Is there a possibility ?

Answer posted by Dan Letecky [DayPilot]
6 months ago.

The onResourceHeaderClicked is a legacy event which has been replaced by the onRowClicked event.

In onRowClick and onRowClicked, you can access the column index using args.x.

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