prodz18 / TiFlexiGrid

An Alloy Widget for creating grid layouts.
125 stars 36 forks source link

Feature Request (appendToGrid) #3

Open rogerwhite opened 11 years ago

rogerwhite commented 11 years ago

How about a method to append to the laid out grid?

There is the createGrid(params) method where all the information on columns etc are laid out. If there was a method to appedToGrid(items), we could use something like infinity scrolling or "load more" functions to append to created grid.

rogerwhite commented 11 years ago

Actually createGrid with the previous items cleared out works just fine.

rogerwhite commented 11 years ago

Is there a way to trigger an event when the scroll of grids reaches the bottom? This would be useful to trigger an infinite scroll action

prodz18 commented 11 years ago

Hi rogerwhite. I'll be updating the widget very soon. I'll try to add what you suggest. Thanks for the tips!

rogerwhite commented 11 years ago

That's awesome. If you can add a feature where at the end of the view, load more, it would be very very useful.

Another thing to note is in phones, when you load a large number of grids, it seems to crash. A method to be able to remove grids would also be be rather useful. Something like removeGrids(20) would remove the first 20 grids.

Thoughts?

soyoh commented 10 years ago

Hello Pablo, do you still consider updating this feature?? i was thinking about proposing the same, waiting for your updates, and thanks for the work!!!

prodz18 commented 10 years ago

Sorry for my late response. Yes, I'm working on the widget. I'll be updating it very soon.

rogerwhite commented 10 years ago

Awesome

prodz18 commented 10 years ago

Update 1.2 is now available. Now there is a method "addGridItem(object)" that add an item to the grid. So, in a way, you can simulate a "load more". I'll keep working on a better solution and i'll included on the next update.

bablydas commented 9 years ago

Hi Pablo,

Thanks for the awesome widget. Was wondering if you have a new update for "load more" functionality as mentioned above.

Thanks.