1.2.1 • Published 2 years ago

imcgridtable v1.2.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Create and manage table with ease.

npm.io

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

PropertyDescriptionTypedefaultValue
showmenuedit or displayboolean
authObjchart data & settingjson data
onChangereturn 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 git@github.com:ykn9080/imctable.git
$ cd imctable
$ npm install
$ npm start

Open your browser and visit http://127.0.0.1:3009

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.2.1

2 years ago

1.1.5

2 years ago

1.1.4

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.96

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.91

3 years ago

1.0.95

3 years ago

1.0.94

3 years ago

1.0.93

3 years ago

1.0.92

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago