Provides the possibility of paginating data for the first level of the TreeView #5112
Labels
comp: clay-components
Issues related to Clay components. (e.g ClayCard, ClayLabel...)
type: enhancement
Issues that are open to bring improvements or refinement of code
This is a follow-up issue of the implementation in PR #5103, as we don't have a root item of a tree, we couldn't make an implementation that allows loading paginated data to the first level because it's an Array, this makes things more complicated here because the rendering of the elements inside the TreeView is an Item scope.
The ideal solution is for a tree to always have a root item this will work fine, but this should not reflect the look, as the Lexicon in TreeView should not have a root item. So we need to ignore the visual state of a root item and just use it internally, DXP teams don't need to worry about that and also we shouldn't change your Array structure to a root item added by TreeView, so we should do this as a virtual root item that allows you to make the paginated data engines work properly.
This can make things more complex internally because we will need to hide this, and also the TreeView structure on how it shares information between items is using element nesting, so we need to adjust that.
The goal of the issue is to allow the paginated data to be done transparently as it is done for the other levels and not need complex implementation done by the developers.
The text was updated successfully, but these errors were encountered: