1.0.0 • Published 4 years ago

sword-grid v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

sword-grid

high performance react grids

NPM JavaScript Style Guide

Install

npm install --save sword-grid

Usage

import React, { Component } from 'react'

import SwordGrid from 'sword-grid'
import 'sword-grid/dist/index.css'

class Example extends Component {
  render() {
    return <SwordGrid
      columnDefs={[
        { headerName: "Make", field: "make" },
        { headerName: "Model", field: "model" },
        { headerName: "Price", field: "price" }
      ]}
      rowData={[
        { make: "Toyota", model: "Celica", price: 35000 },
        { make: "Ford", model: "Mondeo", price: 32000 },
        { make: "Porsche", model: "Boxter", price: 72000 }
      ]}
    />
  }
}

License

MIT © marcello-oliveira