mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 17:24:07 +00:00
Implement TextWidget (#484)
This commit is contained in:
@@ -37,6 +37,7 @@ import { ComboWidget } from "./widgets/ComboWidget"
|
||||
import { NumberWidget } from "./widgets/NumberWidget"
|
||||
import { ButtonWidget } from "./widgets/ButtonWidget"
|
||||
import { NodeInputSlot, NodeOutputSlot } from "./NodeSlot"
|
||||
import { TextWidget } from "./widgets/TextWidget"
|
||||
|
||||
export type NodeId = number | string
|
||||
|
||||
@@ -1683,6 +1684,10 @@ export class LGraphNode implements Positionable, IPinnable {
|
||||
case "button":
|
||||
widget = new ButtonWidget(custom_widget)
|
||||
break
|
||||
case "text":
|
||||
case "string":
|
||||
widget = new TextWidget(custom_widget)
|
||||
break
|
||||
default:
|
||||
widget = custom_widget
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user