Package Exports
- zim-datatable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zim-datatable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ZIM Datatable
Short Description
Collaborative abstraction for a unified react table component. Tries to abstract away the need for a concrete dependency.
- based on Material Table
Demos and examples
- see demo folder in src (via "npm start" launch dev setup from create-react-app)
Quickstart
import React from "react";
import ZIMDataTable from "zim-datatable";
const TableDemo: React.FC = () => {
return (
<ZIMDataTable
title="Demo Table"
columns={[
{ title: "First Col", field: "name" },
{ title: "Second Col", field: "surname" },
]}
// data needs to be set according to given columns
// first prop must be "name" second "surname" according to columns
data={[
{
"name": "Grimes",
"surname": "Buchanan"
},
{
"name": "Shannon",
"surname": "Wells"
},
]}
/>
);
};
export default TableDemo;