MCPcopy
hub / github.com/tensorflow/tfjs / setActiveTab

Method setActiveTab

tfjs-vis/src/visor.ts:238–244  ·  view source on GitHub ↗

* Sets the active tab for the visor. * * @doc {heading: 'Visor & Surfaces', subheading: 'Visor Methods'}

(tabName: string)

Source from the content-addressed store, hash-verified

236 * @doc {heading: 'Visor & Surfaces', subheading: 'Visor Methods'}
237 */
238 setActiveTab(tabName: string) {
239 const tabs = this.visorComponent.state.tabs;
240 if (!tabs.has(tabName)) {
241 throw new Error(`Tab '${tabName}' does not exist`);
242 }
243 this.visorComponent.setState({activeTab: tabName});
244 }
245}

Callers 1

visor_test.tsFile · 0.45

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected