Document toolboxDocument toolbox

1.3.8. Nested resources

Overview

The resource tree allows developers to nest resources, creating a hierarchical structure that can be expanded or collapsed by clicking on the resource.

This feature is useful in planning tools like the scheduler because it allows users to easily navigate and organize resources. For example, a company might use the resource tree to organize employees by department or team, allowing managers to quickly find and assign tasks to the right people. The ability to expand or collapse the resource tree also makes it easy to focus on specific sections of the resource hierarchy, improving the usability of the scheduling component.

For an example see: resource tree

Implementation

image-20240711-123739.png

Enabling nested resources is a straightforward process. To enable this feature, ensure that you set "enable tree" to "yes" and provide a parent resource ID attribute. This attribute can be empty for root-level resources. The widget will automatically generate a nested tree based on this data.