MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / linkTabContents

Function linkTabContents

ui/media/js/main.js:2616–2626  ·  view source on GitHub ↗
(tab)

Source from the content-addressed store, hash-verified

2614 document.dispatchEvent(new CustomEvent("tabClick", { detail: tabInfo }))
2615}
2616function linkTabContents(tab) {
2617 var name = tab.id.replace("tab-", "")
2618 var content = document.getElementById(`tab-content-${name}`)
2619 tabElements.push({
2620 name: name,
2621 tab: tab,
2622 content: content,
2623 })
2624
2625 tab.addEventListener("click", (event) => selectTab(tab.id))
2626}
2627function isTabActive(tab) {
2628 return tab.classList.contains("active")
2629}

Callers 4

createTabFunction · 0.85
initMergeUIFunction · 0.85

Calls 3

selectTabFunction · 0.85
pushMethod · 0.80
addEventListenerMethod · 0.45

Tested by

no test coverage detected