mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 10:14:06 +00:00
Implement SliderWidget (#485)
This commit is contained in:
@@ -38,6 +38,7 @@ import { NumberWidget } from "./widgets/NumberWidget"
|
||||
import { ButtonWidget } from "./widgets/ButtonWidget"
|
||||
import { NodeInputSlot, NodeOutputSlot } from "./NodeSlot"
|
||||
import { TextWidget } from "./widgets/TextWidget"
|
||||
import { SliderWidget } from "./widgets/SliderWidget"
|
||||
|
||||
export type NodeId = number | string
|
||||
|
||||
@@ -1688,6 +1689,9 @@ export class LGraphNode implements Positionable, IPinnable {
|
||||
case "string":
|
||||
widget = new TextWidget(custom_widget)
|
||||
break
|
||||
case "slider":
|
||||
widget = new SliderWidget(custom_widget)
|
||||
break
|
||||
default:
|
||||
widget = custom_widget
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user