tvo-react-simple-grid
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

tvo-react-simple-grid

NPM JavaScript Style Guide

Install

npm install --save tvo-react-simple-grid

Usage

import * as React from 'react';
import { IColumnDefs, TVoSimpleGrid } from 'tvo-react-simple-grid';
import 'tvo-react-simple-grid/dist/index.css';

export default class TVoGridView extends React.Component<
  ITVoGridViewProps,
  ITVoGridViewState
> {
  public render() {
    return (
      <div>
        <TVoSimpleGrid
          dataSource={this.state.dataSource}
          columnDefs={this.state.columns}
          onScrollToBottom={this._onScroll}
          onRowItemRender={this._onRowItemRender}
          onHeaderItemRender={this._onHeaderItemRender}
          onContextMenuClick={this._onContextMenuClick}
          onContextMenuRender={this._onContextMenuRender}
          onRowItemClick={this._onRowItemClick}
          disableGridScroll={false}
        />
      </div>
    );
  }
}

Code Example

https://github.com/tvo2015/tvo-react-simple-grid

Package Sidebar

Install

npm i tvo-react-simple-grid

Weekly Downloads

2

Version

1.0.9

License

MIT

Unpacked Size

253 kB

Total Files

43

Last publish

Collaborators

  • tvo0812