-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
Not sure what's up with travis tests failing, all karma tests pass when I run local gulp. Looks like most recent PR's are failing their travis tests too. |
Bonus side effect - using ui-scrollpoint inside a ui-select-footer, I was easily able to add infinite scrolling to my ui-select choices. |
The infinite scrolling benefit is pretty cool. Since you're prepending/appending the header and footer to the |
44f43df
to
e58cd3f
Compare
Oh yes, you are right. They do scroll into and out of view. I think you could might be able to have them stay in place with css? I will need to test that. If not, I will think about adding something like a fixed="true" attribute. |
I suspected a CSS solution might be applicable too. A quick search around Stack Overflow indicates it might be a bit tricky, though. That said, I'm not sure there is much that can be done without seriously reorganizing the templates since the top-level element of |
Ok, well I just read this article: http://webdesign.tutsplus.com/tutorials/sticky-positioning-with-nothing-but-css--cms-24042 Looks like it should be as easy as I tried using the ngSticky module with no success. If I get the time, I'll look more into something to make them sticky. I bet there's a way to use ui-scrollpoint for this too. |
Would it make sense to transclude the directives a little higher up the DOM tree? |
Also, I was trying out your code and thought it looked a bit better if I included a bootstrap list separator as well:
|
Hmm not sure if it would work with the directives higher in the DOM tree. If I recall, it is the |
Yeah, there would have to be some new CSS and custom logic to show/hide those elements, or maybe just a new container around the For what it's worth, I have your current code monkey-patched in and it's working well. Is fixing the travis build just a matter of merging upstream changes? |
ya just merged upstream and travis build passes now. |
I've got a gulped branch at https://github.com/TechNaturally/ui-select/tree/feat-header-footer-bower You can use it in your bower.json dependencies with: |
The history on this needs fixing - there should not be any merge commit. |
29fd28b
to
16816b3
Compare
Fixed history |
It would probably also be good to add documentation and an example so that users know the feature exists once it is available. |
Just added a wiki page. Working on an infinite-scroll example using |
You'll need to rebase especially following changes to examples in #1550 (you can just move your A basic header footer example would also be nice, rename to Once that's done I'll merge. |
a396a80
to
58d49b7
Compare
@user378230 thanks... rebased, and renamed/updated the demo to include a basic example. I am not sure that I could use a |
@GDuchemin please post meaningful responses to issues, thanks! Also not that this PR doesn't work with angular 1.5.x as per previous replies, can't be merged until it does. |
I just tried to reselect the target for prepend and append |
@GDuchemin maybe post your code? |
I just defined again the selector before prepend and append code. |
908f374
to
2218ed6
Compare
Thanks so much for the input @GDuchemin! your solution for appending after $timeout works in angular 1.4 + 1.5. You brought this back to life. I've rebased my branch and done a bit more work to refactor with the The reason for the re-compile is in case any directives in the header or footer require the Plunker demo updated with latest compiled select.js+select.css copied in. Everything seems to be working with angular 1.4 + 1.5! I think this branch might finally be ready to merge... |
updated uiSelect directive's transclusion to include ui-select-header and ui-select-footer elements
2218ed6
to
b743fcc
Compare
Great work @plong0 :) |
When will this be merged? |
@dannydinges if you watch the repo you should get a github notification when this thread is updated, you can then pop by to see if it's been merged. Hope that helps! 😃 |
@plong0, maybe you know, why ng-click in ui-select-header is fired twice? |
Hello, |
@user378230 what is the needs: PR test(s) label? |
@kotmatpockuh I also encountered the same problem. Did you solve the problem? |
@kotmatpockuh @chansx The problem seems to be this. Commenting out the $compile call (line 254 in src/uiSelectDirective.js) worked for me as there was no need for an extra compile in my use case. |
@kotmatpockuh @chansx @gpsinghsandhu Based on the answer @gpsinghsandhu linked to, maybe it needs to |
Probably merge and release? =) |
Any updates on this? |
@kotmatpockuh, i encountered the same problem, even worse, The reason is that compliation: https://github.com/TechNaturally/ui-select/blob/b743fcce965ad6ed1ab4a200e961d119af774b42/src/uiSelectDirective.js#L254 Update: @plong0, your solution to compile header & footer separately didn`t solved the issue, what was the reason of the second compilation? |
I`ve created a clean PR that implements header & footer without hacks. |
Could somebody say when this PR will be released? |
It has been released. Closing this PR down. |
Could you please validate the release number it is supposed to be included in? I checked the latest and
Was the feature removed or something? Thanks |
It was removed, there is another PR that waits for a long time to be merged. |
allows ui-select-header and ui-select-footer directives to be embedded in the select dropdown.
Example Structure with header and footer: