Skip to content

Conversation

@huchenlei
Copy link
Contributor

@huchenlei huchenlei commented Mar 11, 2025

class MultiSelectNode:
    @classmethod
    def INPUT_TYPES(cls):
        return {
            "required": {
                "foo": ("COMBO", {"options": ["A", "B", "C"], "multi_select": True})
            }
        }

    RETURN_TYPES = ("STRING",)
    OUTPUT_IS_LIST = [True]
    FUNCTION = "multi_select_node"
    CATEGORY = "DevTools"
    DESCRIPTION = "A node that outputs a multi select type"

    def multi_select_node(self, foo: list[str]) -> list[str]:
        print(f"foo: {foo}")
        return (foo,)

image

┆Issue is synchronized with this Notion page by Unito

@huchenlei huchenlei requested a review from a team as a code owner March 11, 2025 20:07
Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@huchenlei
Copy link
Contributor Author

Requires #2989 to function properly.

@huchenlei
Copy link
Contributor Author

image

@huchenlei
Copy link
Contributor Author

Chips mode:
image

@huchenlei huchenlei merged commit bcd76ba into main Mar 12, 2025
10 checks passed
@huchenlei huchenlei deleted the vue_widget branch March 12, 2025 16:03
@christian-byrne
Copy link
Contributor

👏👏

ms.mp4

@MohammadAboulEla
Copy link
Contributor

I believe what we need most is a tuple widget that allows input for both width and height within the same line. It should be flexible enough to support up to four inputs, enabling us to map R, G, B, and A in a single widget line instead of wasting node space with separate lines for each input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants