MCPcopy Create free account
hub / github.com/adobe/leonardo / toggleTooltip

Function toggleTooltip

docs/ui/src/js/tooltip.js:12–19  ·  view source on GitHub ↗
(targetId)

Source from the content-addressed store, hash-verified

10*/
11
12function toggleTooltip(targetId) {
13 let tooltip = document.getElementById(targetId);
14 if (!tooltip.classList.contains('is-open')) {
15 tooltip.classList.add('is-open');
16 } else {
17 tooltip.classList.remove('is-open');
18 }
19}
20
21window.toggleTooltip = toggleTooltip;
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected