Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (61 sloc) 1.31 KB

Welcome to the TurboGrid!

Some Highlights:

  • Lightweight and lightning fast JS grid component
  • Tree-like structure rows and columns
  • Cells formatting and customize formater
  • Data sorting and formatting
  • Frozen rows and columns
  • Columns resizing
  • Data exporting
  • Row dragdrop

Getting Started

Basic Setup

npm install turbogrid --save

Dependency

Import constructor

//1, from global namespace
var TurboGrid = window.TurboGrid;

//2, AMD/CMD/CommonJS require
var TurboGrid = require("turbogrid");

//3, ES6 import(babel) from node modules
import TurboGrid from "turbogrid";

Simple Example

var container = $(".container");
var turbogrid = new TurboGrid(container);
turbogrid.setOption({
    sortField: "name"
});
turbogrid.setData({
    columns: [{
        id: "name",
        name: "Name"
    }, {
        id: "value",
        name: "Value"
    }],
    rows: [{
        name: "Row 1",
        value: "1"
    }, {
        name: "Row 2",
        value: "2"
    }]
});
turbogrid.render();

Documentation And Demo

Development

npm install
npm run build

Changelog