- Notifications
You must be signed in to change notification settings - Fork 2.4k
[Added] the new feature to ui-grid for multi-select filter #5729
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
Conversation
added multi select filter for the data
| @sanjaynishad can you please fix this PR so it passes integration? Thank you |
| Sure, please give me some time. Thanks |
| @dlgski fixed the PR, Thank You.. :) |
src/less/multiselect-filter.less Outdated
| } | ||
| | ||
| .ui-grid-multi-select-filter .footer { | ||
| |
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.
remove ?
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.
done
| @@ -0,0 +1,99 @@ | |||
| if (!Element.prototype.matches) { | |||
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.
this should be contained w/in an closure. Also needs 'use strict'
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.
why do you have all this code outside of the module?
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.
done
| if (!Element.prototype.matches) { | ||
| Element.prototype.matches = Element.prototype.msMatchesSelector; | ||
| } | ||
| if (!Element.prototype.closest) { |
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.
have you looked at gridUtil ?
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.
I have added these code for IE, btw no need to keep this. removed the same
Create a scope for the compiled directive and $destroy it when removing the element containing the directive.
Move files to feature folder.
| Hi @dlgski, any tips on next steps for this PR? |
| @sanjaynishad and @franbenz Can you please add unit tests to your feature? |
| If I see no response in 4 days or so, I will be declining this PR for now. |
| @mportuga I'm not getting time to work on unit test. |
| I might try if I get some time, but for now, this will just have to stay open. |
| Hi Sanjay below is the error Error: [$compile:ctreq] http://errors.angularjs.org/1.4.8/$compile/ctreq?p0=uiGrid&p1=uiGridHeaderCell I have added the gridoption $scope.gridOptions = { and header template as below. Please let me know what mistake I have done. Thanks |
| Hi @pradapkumar , |
| I cannot merge feature updates without unit tests. Is this PR still necessary? |
| Will add unit test |
| @sanjaynishad Any progress on unit tests? |
| Closing due to lack of tests. |
| @sanjaynishad no prb thanks 😊 |
Added the new feature to ui-grid for multi-select filter, it's inspired from the example http://ui-grid.info/docs/#/tutorial/306_custom_filters
already added new repo--> https://github.com/sanjaynishad/ui-grid-multiselect-filter
demo -->http://www.sanjaynishad.com/ui-grid-multiselect-filter/
Thanks..:)