eclipsesource / eclipsesource/tabris-js
CollectionView reveal callback/promise
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Would it be possible for the [reveal method of the CollectionView](https://docs.tabris.com/3.4/api/CollectionView.html#revealindex-options) to return a promise?
If I want to [get the cell by item index](https://docs.tabris.com/3.4/api/CollectionView.html#cellbyitemindexitemindex), I need to wait until the cell is visible, and for that I need to wait for the reveal function, even if the animation is disabled or the cell will be null.
Is there a workaround this problem, other than a setTimeout?
Thank you!
Contributor guide
Research direction
Start with the CollectionView reveal method and the cellByItemIndex API described in the linked documentation. Trace how reveal makes a cell visible, including disabled animation and null-cell cases, then determine how completion should be exposed and verify that callers can wait before accessing the cell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100