-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add Button component #49 #110
Add Button component #49 #110
Conversation
2 things:
template.hbs: <ul class="test-list">
{{#each model as |item|}}
<li>{{item.name}}</li>
{{/each}}
</ul>
{{load-more-button}} load-more-button.js: export default Ember.Component.extend({
tagName: 'button'
action: 'infinityLoad'
}); That should do it I think. Unless I'm missing something? |
@davidgoli Thank you for taking a look. Tests are failing for ember-1.10 and ember-beta, I will look the reason behind the failure. Reason I added this functionality is because there is an open issue for adding button component, please check #49 and #46 . |
I see, this is fine to add, though it seems a bit extraneous since it's so simple to roll your own. I'd still say it doesn't belong in the |
@davidgoli I think I would agree with you. This functionality seems better suited as a dependent add-on IMO, something like |
I Agree - I think it's a different concern. I think it would be more important to add a note to the readme that explains how to use the infinityLoad action with a button rather than the infinity-loader I think @davidgoli example would be great - but it would be nice to show a loading text on the button like we do with the infinity-loader. Devs will be able to go from there 👍 |
@anilmaurya yes please! I updated #49 👍 |
No description provided.