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

https://github.com/niceue/nice-grid

jQuery grid plugin.
https://github.com/niceue/nice-grid

Last synced: 10 months ago
JSON representation

jQuery grid plugin.

Awesome Lists containing this project

README

          

## Grid
A data table jQuery plugin.

### Usage
Include resources:
``` html

```

Initialization:
``` html


```
``` js
$('#data_grid').grid({
dataSource: 'controner/action',
columns: [
{title: "ID", field: "table_id"},
{title: "Name", field: "table_name"},
{title: "Contact", field: "table_contact"},
{title: "Action", formatter: "action"}
],
formatters: {
action: function(row){
return 'Edit';
}
},
fEdit: function(e, row){
e.preventDefault();
//do something..
}
});
```

Get an instance:
``` js
$('#data_grid').data('grid');
```

Refresh a grid:
``` js
$('#data_grid').grid('refresh');
```

Refresh a grid width params:
``` js
$('#data_grid').grid({
//All support optionss
});
```

### Documention
[简体中文](http://niceue.com/nice-grid/)

### Dependencies
[jQuery 1.7+](http://jquery.com)

### Browser Support
* IE6+
* Chrome
* Safari 4+
* Firefox 3.5+
* Opera

### Bugs / Contributions
- [Report a bug](https://github.com/niceue/nice-grid/issues)
- To contribute or send an idea, github message me or fork the project

### Build
Grid use [UglifyJS2](https://github.com/mishoo/UglifyJS)
you should have installed [nodejs](nodejs.org) and run `npm install uglify-js -g`.


### License
nice Grid is available under the terms of the [MIT License](http://niceue.com/licenses/MIT-LICENSE.txt).