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

Method open

src/aria/tabs/tab-list.ts:179–181  ·  view source on GitHub ↗

Opens the tab panel with the specified value.

(value: string)

Source from the content-addressed store, hash-verified

177
178 /** Opens the tab panel with the specified value. */
179 open(value: string): boolean {
180 return this._pattern.open(this.findTab(value)?._pattern);
181 }
182
183 findTab(value?: string) {
184 return value ? this._collection.orderedItems().find(tab => tab.value() === value) : undefined;

Callers

nothing calls this directly

Calls 2

findTabMethod · 0.95
openMethod · 0.65

Tested by

no test coverage detected