MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / toggleModalityWidgets

Function toggleModalityWidgets

web/js/guider_parameters_advanced.js:48–57  ·  view source on GitHub ↗
(node, prefix, enabled)

Source from the content-addressed store, hash-verified

46}
47
48function toggleModalityWidgets(node, prefix, enabled) {
49 for (const w of node.widgets) {
50 if (
51 w.name.startsWith(prefix + "_") &&
52 w.name !== prefix + "_enabled"
53 ) {
54 toggleWidget(node, w, enabled);
55 }
56 }
57}
58
59function injectMultilineLabels(node) {
60 const labelMap = {};

Callers 1

nodeCreatedFunction · 0.85

Calls 1

toggleWidgetFunction · 0.85

Tested by

no test coverage detected