Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kevincaradant opened this issue Feb 18, 2016 · 3 comments
Open

Comments

@kevincaradant
Copy link

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 :)

@alexandernst
Copy link
Owner

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/

@kevincaradant
Copy link
Author

kevincaradant commented Sep 12, 2016

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

@alexandernst
Copy link
Owner

Nope, not today, sorry :(

El mar., 13 sept. 2016 a las 1:04, Kévin (notifications@github.com)
escribió:

Any news about this feature today ? :)


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFef-sjwNxbWsBdXpPI8NQYLBOFMRvHks5qpdqDgaJpZM4Hc5lX
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants