docs(Table): add infinite scroll example #3656
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Linked issue
Possibly resolves #1644
β Type of change
π Description
Hello,
I needed to implement an infinite scroll functionality for the table component, so I thought I would share my (naive) implementation.
A couple of things here :
I added a ref on the
<Primitive>
wrapper element and then exposed it in theTable.vue
component, but it might not be necessary as we can just do something like that to grab the wrapper in the component/page that uses the Table (that's what I'm using right now) :In the docs, I left a TODO in the Type part of the Expose section (line 510). I really don't know what to put in here sadly π
This might need 2 PR's, one for the actual change on the
Table
component and one for the docs update, don't really know.And finally, my implementation might be imperfect or flat out wrong as I'm not very experienced... Feel free to let me know what I can improve and if possible why (so I keep on learning π )
If the whole thing is trash it's okay to tell me too !
π Checklist