Code Monkey home page Code Monkey logo

data-grid-tailwind-example's Introduction

Comparing different Data Grid options based on some basic requirements

Data grid basic requirements

  • tailwind style
    • general table style
    • row
    • cell
  • filtering
    • general filter
    • column filter
  • sorting
  • cell edit
  • price

Data grid option

Feature AG-Grid MUI Data Grid TanStack Table Ka-table Grid.js KendoReact Data Grid
Tailwind - General style: global CSS
- Row: rowClass or rowClassRules
- Cell: cellClass or cellClassRules
- Easy to style
- General style: global CSS
- Row: getRowClassName
- Cell: cellClassName
- Normal CSS styling
- Verbose for specific classes
demo
- Verbose customizations via childComponents - General style only
- No specific row/cell styling
- CSS only, no classNames
Filtering - General filter
- quickFilterText for quick filtering
- Column filter
- General and quick filter via quick filter
- Column filter
- General filter using global filtering
- Column filter using column-filtering
- Search and header filter via search and header filter - General filter via search props
- No column filter
- General and column filter, extending existing filters
Sorting No extra config needed No extra config needed - Configurable via sorting - Via sortingMode parameter - Via sort props No extra config needed
Edit Cell - onCellEditingStopped - onCellEditStop - Requires custom input component setup
demo
- editableCells parameter - Not available - Via shouldAcceptEdit
Price Free basic features Free Free Free Free Starts at $395 per developer/year
Demo View demo
AGGrid.tsx
View demo
MuiDataGrid.tsx
View demo View demo View demo
GridJS.tsx
View demo
  • tailwind style ✅
    • general table style: global css
    • row: rowClass or rowClassRules
    • cell: cellClass or cellClassRules
    • easy, flexible and simple to style with tailwind or global css
  • filtering ✅
    • general filter
      • quickFilterText param with quickFilterText state
    • column filter
      • no extra config needed
  • sorting ✅
    • no extra config needed
  • cell edit ✅
    • can use onCellEditingStopped
  • price 🎁
  • example at app/AGGrid.tsx
  • tailwind style ✅
    • general table style: global css
    • row: getRowClassName
    • cell: cellClassName
  • filtering ✅
    • general filter
    • column filter
      • no extra config needed
  • sorting ✅
    • no extra config needed
  • cell edit ✅
    • can use onCellEditStop
  • price 🎁
    • free
  • example at app/MuiDataGrid.tsx
  • tailwind style
    • general table style, rows and cells can be style as normal table components using css - it can probably be able to use classNames on 't' (table) component, but it will be a lot more verbose - demo
  • filtering ✅
  • sorting ✅
  • cell edit ✅
    • can be done, but it is more verbose as it has to create it's on input component config it to the column that should be editable - demo
  • price 🎁
    • free
  • demos
  • tailwind style ✅
    • general table style, rows and cells are not so simple to customize but can be done by childComponents - it is more verbose and harder to style an specific row/cell.
  • filtering ✅
  • sorting ✅
    • possible using param sortingMode
  • cell edit ✅
    • can use editableCells param
  • price 🎁
    • free
  • demos
  • tailwind style
    • general table style: className
    • styling specific row or cell it is not possible ❌
  • filtering
    • general filter ✅
    • column filter ❌
  • sorting ✅
  • cell edit ❌
  • price 🎁
    • free
  • example at app/GridJS.tsx
  • tailwind style ✅
    • can use className, probably with some limitation
  • filtering ✅
  • sorting ✅
    • no extra config needed
  • cell edit ✅
    • can use enterEdit on CellRender
  • price 💶

Run project

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can test and check some data grid examples by uncommenting the component on page app/page.tsx.

data-grid-tailwind-example's People

Contributors

jeff-moraes avatar

Watchers

 avatar

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.