* Sets the active tab for the visor. * * @doc {heading: 'Visor & Surfaces', subheading: 'Visor Methods'}
(tabName: string)
| 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 | } |