我需要反应虚拟化包的哪些部分? [英] Which parts of react-virtualized package I need?

查看:38
本文介绍了我需要反应虚拟化包的哪些部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用图像网格制作无限滚动页面.我需要反应虚拟化包的哪些部分?InfiniteLoader 和 WindowScroller 和 Masonry ?以及如何在滚动窗口时定义查询中的记录限制.

I want to make infinite scroll page with image grid. Which parts of react-virtualized package I need? InfiniteLoader and WindowScroller and Masonry ? And how define limit of records in query when I scroll window.

推荐答案

WindowScroller 适用于 Masonry 组件,但 InfiniteLoader 仅适用于 GridList.(文档提到了这一点.)

WindowScroller works with the Masonry component but InfiniteLoader only works with Grid and List. (The docs mention this.)

当我滚动窗口时如何定义查询中的记录限制.

And how define limit of records in query when I scroll window.

这个问题不是很清楚.也许您应该尝试一些东西,然后发布一个新问题,说明您尝试过的方法以及为什么它不起作用.

This question isn't really clear. Perhaps you should try something and then post a new question with what you've tried and why it isn't working.

请务必通读并理解首先Masonry 文档 的布局和动画约束部分,以避免任何混淆.:)

Please be sure to read through and understand the layout and animation constraints sections of the Masonry documentation first though, to avoid any confusion. :)

这篇关于我需要反应虚拟化包的哪些部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆