-
Notifications
You must be signed in to change notification settings - Fork 725
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
[RFR] Use UI-Select for Choice and Choices fields #505
Conversation
Promising! |
**Tip:** if you are working on Karma tests, you can prevent from relaunching the whole process by disabling single-run: | ||
|
||
``` | ||
KARMA_SINGLE_RUN=false grunt karma:unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Special focus on this line. May save a lot of time!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has already been changed. This is not native to Karma, this is specific to ng-admin
. See Gruntfile changes.
Miss a last point on this PR: |
Back to WIP: multiple choices required constraint is not taken into account. |
scope.v = field.validation(); | ||
|
||
var template = ` | ||
<ui-select ${scope.v.required ? 'ui-select-required' : ''} multiple ng-model="$parent.value" ng-required="v.required" id="{{ name }}" name="{{ name }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not proud of this, but ng-attr-ui-select-required
did not work.
Back to RFR. |
[RFR] Use UI-Select for Choice and Choices fields
It adds select filtering and a better UI for multi-selects.
Before:
Now:
It will especially be useful to populate live select lists using AJAX requests.
Tasks: