Getting Started

Basic Setup


                npm install turbogrid --save
            

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();
            

Preview

Documentation

Refer to the Documentation.

Report an issue

Report an issue to turbogrid issues