Skip to content

A react component for viewing items as a table or catalog card view.

Notifications You must be signed in to change notification settings

stolostron/react-data-view

Repository files navigation

Stolostron / React Item View GitHub package.json version

A react component for viewing items as a table or catalog card view.

DEMO

Installation

npm i @stolostron/react-data-view

Goals

PatternFly

  • Use PatternFly guidelines
  • Support small screens using PatternFly responsive designs
    • Toolbar collapsing
    • Filters collapsing
  • Use shadows as a visual indication that one surface has slid behind another surface
    • Work with PatternFly to adopt shadows

Table

  • Support table only view (no catalog)
  • Support horizontal scrolling with sticky headers and columns
  • Support column management
    • Support custom columns based on data labels
    • Persist column configuration to local storage
    • Save multiple column configurations and switch between
  • Virtualized table rendering (performance)

Catalog

  • Support catalog only view (no table)
  • Virtualized catalog rendering (performance)
  • Card click supporting details drawer or navigation

Search & Filter

  • Filtering, Searching, Sorting of 1,000 items (performance - previously 100,000 with PF4)
  • Fuzzy search (Fuse.js)
    • Search on fields with weights
  • Persist search and filters to url query string
    • Allows saving a URL with preselected search & filters
    • Allow reload of page without losing filter & search

About

A react component for viewing items as a table or catalog card view.

Resources

Stars

Watchers

Forks