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

Method onTitleButtonClick

src/LGraphNode.ts:1827–1833  ·  view source on GitHub ↗
(button: LGraphButton, canvas: LGraphCanvas)

Source from the content-addressed store, hash-verified

1825 }
1826
1827 onTitleButtonClick(button: LGraphButton, canvas: LGraphCanvas): void {
1828 // Dispatch event for button click
1829 canvas.dispatch("litegraph:node-title-button-clicked", {
1830 node: this,
1831 button: button,
1832 })
1833 }
1834
1835 removeWidgetByName(name: string): void {
1836 const widget = this.widgets?.find(x => x.name === name)

Calls 1

dispatchMethod · 0.65

Tested by

no test coverage detected