From a455c7be4cd1ec4a0e69e0be1099fc47e2a8895f Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Tue, 25 Nov 2025 01:42:14 +0100 Subject: [PATCH] feat: add iconClass option to widget interface Added optional iconClass property to IWidgetOptions to support icon display in widget buttons. --- src/lib/litegraph/src/types/widgets.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/litegraph/src/types/widgets.ts b/src/lib/litegraph/src/types/widgets.ts index 16fb791c4..d6b5123f7 100644 --- a/src/lib/litegraph/src/types/widgets.ts +++ b/src/lib/litegraph/src/types/widgets.ts @@ -32,6 +32,8 @@ export interface IWidgetOptions { /** Optional function to format values for display (e.g., hash → human-readable name) */ getOptionLabel?: (value?: string | null) => string callback?: IWidget['callback'] + + iconClass?: string } interface IWidgetSliderOptions extends IWidgetOptions {