Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
Tristate widgets?
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
I often run into the situation where the user can select several objects which have different settings, and then when you create a dialog box with controls that reflect the objects settings, it's not possible to define the values of the controls because they vary across the selected objects.
In the case of checkboxes, a quite widespread solution in many UIs is the "tristate" checkbox, with a "mid" status that means "different values across selected objects". Then, if you switch it to ON or to OFF, all the objects in the selection get the same value.
In other types of controls, I have seen messages like "different values", or so, with similar behaviour to the tristate checkbox.
Does Nuklear have something like this? Or maybe anybody has found a workaround for doing it?
Thanks!
Contributor guide
Research direction
No file, test, or entry point is named. Start by reviewing Nuklear's widget APIs and existing checkbox and control behavior to determine whether tristate or mixed-value support already exists. The issue does not define a specific implementation scope or testable completion condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100