design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

How to design pagination?

Open mattwells424 opened this issue 9 years ago • 5 comments

How should pagination be designed for use with the data table. Below is a sample of a simple (back, next) button pagination design. I have also heard something about a continues scroll. Which or are either of these the correct UX for implementing this?

screen shot 2017-08-07 at 12 48 50 pm

mattwells424 avatar Aug 07 '17 16:08 mattwells424

These are the guidelines I can find on the SLDS site: https://latest-210.lightningdesignsystem.com/guidelines/layout/#content

Use a table layout for flexibly viewing and managing large sets of data. The layout uses 100% of the viewport. Items are displayed as rows with their fields organized in columns.

The columns are fixed width and use as much horizontal space as necessary. Columns do not resize when the window changes width. Users can choose which columns to show and how wide each column is. If the grid is wider than the viewport, users horizontally scroll to see more data.

The table can be of infinite length. Data is loaded as the user scrolls. This lets your users access their data most efficiently. Avoid using manual pagination controls, which reduce efficiency.

That said, if there is a designer/research reason/exception for doing pagination, I would go to the Advisory Hours or have mini-ux patterns meeting with B2C designers.

interactivellama avatar Aug 08 '17 17:08 interactivellama

I can work with you on adding anything to DataTable you need (API-wise) to achieve infinite scroll. Typically page scroll events would be created outside of DSR.

interactivellama avatar Aug 08 '17 17:08 interactivellama

@kwilloughby This is a MC UX patterns standards question, so I'll rope you into this, too.

interactivellama avatar Aug 08 '17 17:08 interactivellama

Similar to this open issue on fixed headers and infinite scroll.

interactivellama avatar Aug 08 '17 17:08 interactivellama

We are going with data tables should not be paginated as the UX patttern standard. Closing.

interactivellama avatar Dec 06 '17 18:12 interactivellama