Open intergalacticspacehighway opened 3 years ago
Here are two more examples of mixed selection modes in a single menu in the wild. The first is on the Windows desktop, the second is in the Window menu of most document-oriented desktop programs:
Got something working! If Items aren't wrapped with a SelectionGroup, it'll fallback to Menu's selectionMode
@intergalacticspacehighway are you still working on this? If not, is your code in a place where someone else could take it over?
@devongovett I lost the code with my old system ๐ญ I can reimplement and create a PR by this weekend though.
@devongovett created a draft PR https://github.com/adobe/react-spectrum/pull/2091. It's a bit rough right now, I've added some comments.
Is this in the roadmap in the near future?
๐ Feature Request
SelectionGroup component will allow putting selection mode on groups. This is a fairly common use-case. See the screenshot attached in examples - there are 2 groups, one has a "single" selection mode and the other has "none".
๐ค Expected Behavior
A single menu component should support more than one selection mode.
๐ฏ Current Behavior
Currently, selection mode can be specified only on the Menu component.
๐ Possible Solution
๐ฆ Context
Have discussed this with @devongovett and we found this is a fairly common use case.
๐ป Examples
๐งข Your Company/Team
GeekyAnts
GeekyAnts/NativeBase
๐ Tracking Ticket (optional)