MCPcopy Create free account
hub / github.com/bytecodealliance/component-docs / activateByName

Function activateByName

component-model/theme/tabs-url-sync.js:20–28  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

18 }
19
20 function activateByName(name) {
21 const tab = document.querySelector(
22 '.mdbook-tabs-container[data-tabglobal="' + GLOBAL_NAME + '"] ' +
23 '.mdbook-tab[data-tabname="' + name + '"]'
24 );
25 if (tab) {
26 tab.click();
27 }
28 }
29
30 // If `element` lives inside a tab pane, activate that pane's tab.
31 // Returns true if a tab was activated.

Callers 1

tabs-url-sync.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…