Skip to content
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

Load more button instead of infinite scrolling #46

Closed
crunchtime-ali opened this issue Jun 26, 2015 · 3 comments
Closed

Load more button instead of infinite scrolling #46

crunchtime-ali opened this issue Jun 26, 2015 · 3 comments

Comments

@crunchtime-ali
Copy link
Contributor

On my homepage I've got a button to load more posts.
In order to upgrade to Ember 1.13 I'd like to switch to using ember-infinity but from what I've seen I won't be able to have a button like this without rewriting a lot of ember-infinity.

Do you have an idea how I could use ember-infinity nonetheless.

image

@hhff
Copy link
Collaborator

hhff commented Jun 27, 2015

Oh you can use Ember Infinity like this out of the box.

Just setup everything as per the README, but instead of using the infinity-loader component, create your own component that sends the action infinityLoad when clicked.

In fact - I'd accept a PR to add a buttonMode=true attr to the infinity-loader component so that we can officially support this functionality

@hhff hhff closed this as completed Jun 27, 2015
@crunchtime-ali
Copy link
Contributor Author

Thanks a lot :)
I'm currently a little short on time because of my master thesis but will keep the PR in mind.

@hhff
Copy link
Collaborator

hhff commented Jun 28, 2015

no worries! i'll make an issue for it and hopefully get around to it soonish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants