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

Method addTitleButton

src/LGraphNode.ts:1820–1825  ·  view source on GitHub ↗
(options: LGraphButtonOptions)

Source from the content-addressed store, hash-verified

1818 }
1819
1820 addTitleButton(options: LGraphButtonOptions): LGraphButton {
1821 this.title_buttons ||= []
1822 const button = new LGraphButton(options)
1823 this.title_buttons.push(button)
1824 return button
1825 }
1826
1827 onTitleButtonClick(button: LGraphButton, canvas: LGraphCanvas): void {
1828 // Dispatch event for button click

Calls

no outgoing calls

Tested by

no test coverage detected