Templates for resource grouping & hierarchy timeline


Within timeline, we’re looking to create a custom template for/with resource grouping & hierarchy. From the documentation, that can be done with a resource grid but is that possible with a grouping/hierarchy structure?

We’re trying to include a button to invoke a drawer with each of the parent records in the hierarchy.

Many thanks


Yes, the renderResource function works for the timeline view as well, so you can use it in the hierarchical view as well. The function receives the resource object, from which you can decide if it’s a parent resource (e.g. has children property), and if it is, you can render the extra button.