ad-datagrid
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

ad-datagrid

NPM version Build npm-typescript License

The purpose of this package is to create tables dynamically. It makes a table according to the data in the sent json file.

Usage/Examples

import { BasicDatagrid, rowItem } from "ad-datagrid"

const row1: Array<rowItem> = [
    { header: "Id", value: 1}
    { header: "Title", value: "lorem ipsum"}
]

const row2: Array<rowItem> = [
    { header: "Id", value: 2}
    { header: "Title", value: "lorem ipsum 2"}
]

const itemList: Array<Array<rowItem>> = [row1, row2];

function App() {
  return <BasicDatagrid rowList={itemList} />
}

Appendix

It can be written custom error message.

Demo

BasicDatagrid: demo

Readme

Keywords

Package Sidebar

Install

npm i ad-datagrid

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

45.1 kB

Total Files

58

Last publish

Collaborators

  • deserthawk