angular-multi-select icon indicating copy to clipboard operation
angular-multi-select copied to clipboard

How can i force the multiselect to have at least one item checked

Open kevincaradant opened this issue 9 years ago • 3 comments

Hi

I didn't found in the doc something about this problem, or maybe it's me but is it possible to force at least one item to be checked in the single select ?

Thank you :)

kevincaradant avatar Feb 18 '16 09:02 kevincaradant

I'd say "no", it's not possible. That is a feature I didn't thought about. I guess it makes sense if the directive lives in a form.

Until I implement this feature, you can manually check the size of output-model to check if something was selected and return invalid if it wasn't. http://ng-learn.org/2014/02/Writing_Custom_Validitions/

alexandernst avatar Mar 03 '16 07:03 alexandernst

Hi, Thank you for your answer, Any news about this feature today ? :)

kevincaradant avatar Sep 12 '16 23:09 kevincaradant

Nope, not today, sorry :(

El mar., 13 sept. 2016 a las 1:04, Kévin ([email protected]) escribió:

Any news about this feature today ? :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexandernst/angular-multi-select/issues/79#issuecomment-246523362, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFef-sjwNxbWsBdXpPI8NQYLBOFMRvHks5qpdqDgaJpZM4Hc5lX .

alexandernst avatar Sep 13 '16 08:09 alexandernst