Skip to content
This repository has been archived by the owner on Oct 24, 2019. It is now read-only.

Releases: nhn/toast-ui.react-grid

v2.0.4

29 Aug 06:36
Compare
Choose a tag to compare

Bugfixes

  • Added reactive columnOptions props.(#9)

Chore

  • Update tui-grid version to ^4.5.0.

v2.0.3

09 Aug 08:01
Compare
Choose a tag to compare

Bugfixes

  • Fixed that onGridMounted, onGridBeforeDestroyed is registered in duplicate.(#8)

v2.0.2

05 Aug 05:08
Compare
Choose a tag to compare

Bugfixes

  • frozenColumnCount props is applied in ComponentDidMount life cycle.

v2.0.1

10 Jul 08:31
Compare
Choose a tag to compare

Bugfixes

  • Changed shouldComponentUpdate condition for react hooks.

v2.0.0

08 Jul 06:44
Compare
Choose a tag to compare

New Vue Wrapper For TOAST UI Grid 4.0 πŸŽ‰πŸŽ‰πŸŽ‰

Breaking Changes

Data Source

// v1.0.0
const columns = [/* ... */];
const netOptions = {
  perPage: 10,
  api: {
    readData: 'api/readData'
  }
};

const MyComponent = () => (
  <Grid 
    columns={columns}
    addon={{Net: netOptions}}
  />
);

// v2.0.0
const columns = [/* ... */];
const dataSource = {
  withCredentials: false,
  initialRequest: true,
  api: {
    readData: {url: 'api/readData', method: 'GET'}
  }
};

const MyComponent = () => (
  <Grid 
    columns={columns} 
    data={dataSource} 
    pageOptions={{perPage: 3}}
    onSuccessResponse={(data) => {
      console.log(data);
    }}
  />
);

With React Hooks

React Hooks can be used together.

import React, {useCallback} from 'react';

const MyComponentWithHooks = () => {
  const onClick = useCallback(() => {
    console.log('condition:', condition);
  }, [condition]);

  return <Grid columns={columns} data={data} onClick={onClick} />;
};

API Document

v1.0.0

30 Jan 02:38
Compare
Choose a tag to compare
chore: build 1.0.0