mr-generic-table
v1.0.2
Published
This smart table
Downloads
3
Readme
Mr Generic Button
A customizable button component for React applications.
Table of Contents
Installation
Install the package via npm:
npm install --save-dev mr-generic-table
Usage
import Button from 'mr-generic-table';
const columns = [
{ title: 'Name', dataIndex: 'name', key: 'name' },
{ title: 'Age', dataIndex: 'age', key: 'age' },
{ title: 'Address', dataIndex: 'address', key: 'address' },
];
const data = [
{ key: '1', name: 'John Brown', age: 32, address: 'New York No. 1 Lake Park' },
{ key: '2', name: 'Jim Green', age: 42, address: 'London No. 1 Lake Park' },
{ key: '3', name: 'Joe Black', age: 32, address: 'Sidney No. 1 Lake Park' },
];
const myFunction = () => {
eturn (
<Table
tableItemName = "Records"
columns = {columns}
dataSource = {data}
totalContent={data?.length}
/>
);
}