MCPcopy Create free account
hub / github.com/angular/components / _getSetSize

Method _getSetSize

src/cdk/tree/tree.ts:848–851  ·  view source on GitHub ↗

* For the given node, determine the size of the parent's child set. * * This is intended to be used for `aria-setsize`.

(dataNode: T)

Source from the content-addressed store, hash-verified

846 * This is intended to be used for `aria-setsize`.
847 */
848 _getSetSize(dataNode: T) {
849 const set = this._getAriaSet(dataNode);
850 return set.length;
851 }
852
853 /**
854 * For the given node, determine the index (starting from 1) of the node in its parent's child set.

Callers 1

_getSetSizeMethod · 0.45

Calls 1

_getAriaSetMethod · 0.95

Tested by

no test coverage detected