2.7.1 • Published 28 days ago
@tracktor/data-grid v2.7.1
Data Grid
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.
Prop | Type | Default | Description | |
---|---|---|---|---|
height | number | string | undefined | Set the height of the grid | |
panelHeight | number | "auto" | undefined | Set the height of custom panel when getDetailPanelContent is provided | |
variant | "outlined" | undefined | Set variant | |
elevation | number | 1 | Set elevation. This props work only with elevation variant. | |
nbeRowsLoadingSkeleton | number | 7 | Set number of rows loading skeleton | |
loadingVariant | "skeleton" | "linear" | "skeleton" | Set loading variant style | Set number of rows loading skeleton |
isLoading | boolean | undefined | Alias for loading | Set 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