MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / addOnTriggerInput

Method addOnTriggerInput

src/LGraphNode.ts:1202–1211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1200 }
1201
1202 addOnTriggerInput(): number {
1203 const trigS = this.findInputSlot("onTrigger")
1204 if (trigS == -1) {
1205 this.addInput("onTrigger", LiteGraph.EVENT, {
1206 nameLocked: true,
1207 })
1208 return this.findInputSlot("onTrigger")
1209 }
1210 return trigS
1211 }
1212
1213 addOnExecutedOutput(): number {
1214 const trigS = this.findOutputSlot("onExecuted")

Callers 1

changeModeMethod · 0.95

Calls 2

findInputSlotMethod · 0.95
addInputMethod · 0.95

Tested by

no test coverage detected