andrewmcgivery / ionic-ion-autoListDivider

Gives a set of directives for automatically adding in list dividers for an ng-repeat. (Works for Alphabetical or by Categories)
75 stars 21 forks source link

Add sticky headers #2

Open jimthedev opened 9 years ago

jimthedev commented 9 years ago

Hi,

Great work. It would be fantastic to see some performance benchmarks for this list. With that, it would be fantastic if sticky headers was added as a potential option:

Here is a demo of what I mean: http://codepen.io/anon/pen/EawXRO

And here is the forum thread and trello board vote: http://forum.ionicframework.com/t/sticky-list-headers/689/33 https://trello.com/c/kGTvppdl/57-ion-list-sticky-items

It'd be interesting to see if the intent of the ionic team is to pull this kind of functionality into ionic core or if they'd prefer to keep it out as plugins. There are probably pretty good arguments for both.

andrewmcgivery commented 9 years ago

Will take a look at this. :)

Note to self: Use http://codepen.io/mhartington/pen/XJeVLm as reference point.

andrewmcgivery commented 9 years ago

Also, regarding pulling this into core, I opened an issue asking if they are interested.

https://github.com/driftyco/ionic/issues/3044

jimthedev commented 9 years ago

Great, thanks @andrewmcgivery.

JCsplash commented 8 years ago

@andrewmcgivery The list dividers are very helpful thanks! Please add the sticky list headers if possible. Unlike other sticky components, this one doesn't have "item-container"s to tell dividers how long to be sticky. Anyway to get around that? The plugin Ion-sticky doesn't seem to work well with scroll sista and others.