Replies: 2 comments
-
|
Hey @nakabor, thank you so much for wanting to make this project better. I've converted this to a discussion so we can talk through it and keep our backlog clear. If it does end up being something we want to add, we'll promote it back to an issue when we are ready to work on it. If we commit to this feature, that's a feature we will need to maintain for the lifespan of this project. So, since "Yes is forever", we are carefully considering new features. I do think this feature would make sense, though naming-wise I would probably simplify to something like |
Beta Was this translation helpful? Give feedback.
-
|
Hello! I wanted this feature, so I went ahead and implemented it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Currently, the
MultiSelectcomponent allows setting a maximum limit for selections using theLimit()method. However, there's no way to set a minimum number of required selections. Adding a minimum limit would enhance form validation capabilities.Proposed Solution
Introduce a new method, perhaps called
MinLimit(n int), to set the minimum number of selections required for aMultiSelectfield.P.S.
AtLeast(n int)might be great as well.Example Usage
Beta Was this translation helpful? Give feedback.
All reactions