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

Method _getItem

src/aria/toolbar/toolbar.ts:129–131  ·  view source on GitHub ↗

Finds the toolbar item associated with a given element.

(element: Element)

Source from the content-addressed store, hash-verified

127
128 /** Finds the toolbar item associated with a given element. */
129 private _getItem(element: Element) {
130 return this._itemPatterns().find(item => item.element()?.contains(element));
131 }
132}

Callers 1

ToolbarClass · 0.95

Calls 1

elementMethod · 0.45

Tested by

no test coverage detected