Computes aria-level, aria-setsize, aria-posinset and aria-expanded of the rows of a tree body (AreaModelTree). Sizes and positions count the displayed siblings, i.e. with an active filter only the matching ones. The positions of a group of siblings are computed once and cached until the displayed rows change (expand, collapse, filter, sort) – so the cost per rendered row is O(1), also with a million siblings.

Example

const info = new TreeAriaInfo();
const attrs = info.get(tableModel.getBodyModel() as AreaModelTree<OrderNode>, 0);
// → { level: 1, setSize: 3, posInSet: 1, expanded: true }

Since

1.1.91

Hierarchy

  • TreeAriaInfo

Constructors

Methods

Constructors

Methods