adopted-ember-addons / adopted-ember-addons/ember-collection
Ability for user to get notifications on what is being displayed.
- Langage dominant
- JavaScript
- Étoiles
- 235
- Forks
- 81
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I would like an action `sliceDidChange` (or something like that) where a user could learn what is actually being displayed by the `ember-collection`. When the collection changes, the callback gets called with "startingIndex" and "visibleCount" giving offset and limit of slice from collection being displayed. The use cases to for this include:
1) take an action when content is actually displayed
2) get more content when content is almost displayed
@BryanCrotaz and I need this functionality in https://github.com/shaunc/ember-grid to get content ready for display so we can have smooth scrolling. It would also be useful for smooth infinite scroll (request from server when near), or to lazily update content when its not ready yet.
[PR coming shortly]
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
The issue does not name files or tests. Start by tracing ember-collection's rendering lifecycle and existing callback APIs; confirm how visible slices change during scrolling. Done means a user-facing callback reports startingIndex and visibleCount whenever the displayed collection slice changes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100