Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/diogok/supagrid

Experimental HTML5 big table grid editor.
https://github.com/diogok/supagrid

Last synced: about 2 months ago
JSON representation

Experimental HTML5 big table grid editor.

Awesome Lists containing this project

README

        

# Supagrid

A simple "supergrid" HTML5 table grid editor, with no other dependency and lightweight.

_EXPERIMENTAL_

[Check it out](http://diogok.github.io/supagrid).

## Usage

Include the CSS and JS:


Create the container element:

Initiate the GRID:

var fields = [];
var data = [];

var g = new Supagrid({
element: document.getElementById('grid'),
fields: fields,
id_field: fields[0],
data: data,
on: {
change: function(obj,field,value) {
},
focus: function(obj) {
}
}
});

Supagrid automatically binds to the objects on the data element, so if an object changes the grid will update and if the grid changes it will update the object.

Soon it will also bind the the data array to check it items were added or removed.

You can optionally apply custom styles:

## License

MIT