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

Tiny virtual grid? #8

Open
janosh opened this issue May 5, 2021 · 5 comments
Open

Tiny virtual grid? #8

janosh opened this issue May 5, 2021 · 5 comments

Comments

@janosh
Copy link

janosh commented May 5, 2021

Nice work! Any plans to implement svelte-tiny-virtual-grid or perhaps advice on how to go about that?

@jonasgeiler
Copy link
Owner

Alright. This answer is a bit late, but I finally got the motivation to revisit my older projects.

The thing is...
If you'd ask me how this library works, I wouldn't really know 😅
Most of the code is just taken from react-tiny-virtual-list and I've just made it compatible with Svelte.
So maybe perhabs one day, I'll rewrite this whole thing using my own code. But for now I don't have any plans for such a library. Sorry...

@mskocik
Copy link
Contributor

mskocik commented Sep 29, 2021

@janosh I would say the virtual grid would use the same principles of what should be displayed at the moment, but in general it's something completely different than simple list. As @skayo said, it would be totally new library.

@Amerlander
Copy link

You could do something like suggested in sveltejs/svelte-virtual-list#16 (comment)

Here is a working example for skyao/svelte-tiny-virtual-list: https://svelte.dev/repl/2250c4b4e7054b01ac9329f827bee090?version=3.44.0

@bbigras
Copy link

bbigras commented Jan 25, 2022

Here is a working example for skyao/svelte-tiny-virtual-list: https://svelte.dev/repl/2250c4b4e7054b01ac9329f827bee090?version=3.44.0

Would this work with a horizontal scroll bar too?

@Amerlander
Copy link

It should not matter in what direction you scroll.
The Idea is to create a div containing one full Row/Column and the virtual list treats each column/row as a single item.

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

5 participants