2.7.1 • Published 28 days ago

@tracktor/data-grid v2.7.1

Weekly downloads
-
License
ISC
Repository
github
Last release
28 days ago

Data Grid

npm version

A React library data table and data grid

The library is based on MUI X

Installation

yarn add @tracktor/design-system @tracktor/data-grid 

or

npm install @tracktor/design-system @tracktor/data-grid 

Usage

import { DataGrid, DataGridProvider, GridColDef, GridRowsProp} from "@tracktor/data-grid";

const columns: GridColDef[] = [
  {
    field: "name",
    headerName: "Name",
  },
  {
    field: "companies",
    headerName: "Companies", 
  },
];

const rows : GridRowsProp = [
  {
    companies: "Tracktor",
    name: "Kevin Durant",
  },
];

const App = () => (
  <DataGridProvider licence={"YOUR_LICENSE_MUI"}>
    <DataGrid rows={rows} columns={columns} />
  </DataGridProvider>
);

Additional props

This library extend all props from MUI X and add some props to the DataGrid component.

PropTypeDefaultDescription
heightnumber | stringundefinedSet the height of the grid
panelHeightnumber | "auto"undefinedSet the height of custom panel when getDetailPanelContent is provided
variant"outlined"undefinedSet variant
elevationnumber1Set elevation. This props work only with elevation variant.
nbeRowsLoadingSkeletonnumber7Set number of rows loading skeleton
loadingVariant"skeleton" | "linear""skeleton"Set loading variant styleSet number of rows loading skeleton
isLoadingbooleanundefinedAlias for loadingSet number of rows loading skeleton
2.7.1

28 days ago

2.7.0

5 months ago

2.6.3

11 months ago

2.6.2

11 months ago

2.6.5

11 months ago

2.6.4

11 months ago

2.6.7

8 months ago

2.6.6

10 months ago

2.6.1

12 months ago

2.6.0

12 months ago

2.5.0

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.5.2

1 year ago

2.5.1

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.0.2

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago