imcgridtable
v1.2.1
Published
<h1 align="center">IMC EasyTable</h1>
Downloads
5
Readme
Create and manage table with ease.
English | Korean
✨ Features
- 🌈 Editable .
- 📦 Add new calculated columes.
- 🛡 Delete or rearrange columes.
- ⚙️ Group by a column and make sum,avg. |
📦 Install
npm install imceasytable
yarn add imceasytable
🔨 Usage
import React from "react";
import "./App.css";
import EasyTable from "imceasytable";
const App = (props) => {
const onChange=(return)=>{
}
return (
<div>
<EasyTable showmenu={false} authObj={sampledata} onChange={onChange}/>
</div>
);
};
export default App;
📜 Document & API
| Property | Description | Type | defaultValue | | -------- | ----------------------------- | ----------------------- | ------------ | | showmenu | edit or display | boolean | | | authObj | chart data & setting | json data | | | onChange | return changed data from edit | (val)=>console.log(val) | |
show edit button if you change showmenu={true}
sampledata example:
const sampledata = {
setting: {
column: [
{
title: "name",
titletext: "name",
origin: "name",
dataIndex: "name",
key: "name",
datatype: "string",
},
{
title: "math",
titletext: "math",
origin: "math",
dataIndex: "math",
key: "math",
datatype: "int",
},
{
title: "english",
titletext: "english",
origin: "english",
dataIndex: "english",
key: "english",
datatype: "int",
},
],
reset: false,
title: "Score",
size: "small",
},
dtlist: [
{
key: "1",
name: "John Brown",
math: 60,
english: 70,
},
{
key: "2",
name: "Jim Green",
math: 66,
english: 89,
},
],
};
⌨️ Development
https://github.com/ykn9080/imcTable
Or clone locally:
$ git clone [email protected]:ykn9080/imctable.git
$ cd imctable
$ npm install
$ npm start
Open your browser and visit http://127.0.0.1:3009