Comfy-Org / Comfy-Org/ComfyUI_frontend

[Feature Request]: Submenus for Long COMBO lists

Open
#310 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Add a meta attr to a field that would allow the combobox list to be turned into a sublist of items:

![image](https://github.com/user-attachments/assets/425a45c4-03b7-402b-a94d-3c4b0d996c8e)
![image](https://github.com/user-attachments/assets/aef136d8-b8a0-44af-9047-fab718934e71)

### Proposed workflow

`"FIELD": ("COMBO_LIST_OF_STUFFS", {})`
==>
`"FIELD": ("COMBO_LIST_OF_STUFFS", {"compact": True})`

Compact could also be used as a general attribute representing a collapsed/compacted display of the field with an exposure to allow the node authors to "re-organize" said display how they wanted.

For the FL node above, it was based on the reference from pythongosssss existing solution:

https://github.com/pythongosssss/ComfyUI-Custom-Scripts/blob/main/web/js/betterCombos.js

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.