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

Function _hasIconOrAvatar

src/material/list/list-base.ts:214–216  ·  view source on GitHub ↗

Whether the list item has icons or avatars.

()

Source from the content-addressed store, hash-verified

212
213 /** Whether the list item has icons or avatars. */
214 _hasIconOrAvatar() {
215 return !!(this._avatars.length || this._icons.length);
216 }
217
218 private _initInteractiveListItem() {
219 this._hostElement.classList.add('mat-mdc-list-item-interactive');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected