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

Method expand

src/material/tree/testing/node-harness.ts:67–71  ·  view source on GitHub ↗

Expands the node if it is collapsed. Only works when node is not disabled.

()

Source from the content-addressed store, hash-verified

65
66 /** Expands the node if it is collapsed. Only works when node is not disabled. */
67 async expand(): Promise<void> {
68 if (!(await this.isExpanded())) {
69 await this.toggle();
70 }
71 }
72
73 /** Collapses the node if it is expanded. Only works when node is not disabled. */
74 async collapse(): Promise<void> {

Callers

nothing calls this directly

Calls 2

isExpandedMethod · 0.95
toggleMethod · 0.95

Tested by

no test coverage detected