Giter Site home page Giter Site logo

Comments (3)

oleggrishechkin avatar oleggrishechkin commented on May 27, 2024

Hi, @Arshad737 scroll in both axis at the same time is not supported. You can create a list where each row will be ViewportList but I can't recommend you this way. Also you can't use sticky elements - one of the possible ways to use sticky is grouping like:

<Scrollable>
  <Sticky />
  <ViewportList />
  <Sticky/>
  <ViewportList />
</Scrollable>

If your case is a big data table I think it's better to use other library like react-window. It also will be more performant in this case.

from react-viewport-list.

Arshad737 avatar Arshad737 commented on May 27, 2024

I have a grid with sticky rows and columns,
I have been using react-window for virtualization, but it doesn't work for the grids which have sticky columns because of position absolute.
I can work with y-scroll, but need columns to be virtualised

from react-viewport-list.

oleggrishechkin avatar oleggrishechkin commented on May 27, 2024

Do you use native css position: sticky;? I don't know a virtualization library to support this. You should use js approach and react-virtualize and virtuoso support it.

If your columns have a fixed width and sticky rows are fixed too (I mean only some specific rows are sticky (maybe the first row) you can try to use solution described by me above:

Render vertical list before sticky row, render sticky row, render vertical list before next sticky row...
Each row is a horizontal list.
Not pretty solution, but this is what you can do to support css sticky.

@Arshad737 I created a simple demo with fixed cells (fixed width and fixed height)

from react-viewport-list.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.