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.
- Host: GitHub
- URL: https://github.com/niceue/nice-grid
- Owner: niceue
- Created: 2013-07-17T11:16:00.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-08-13T06:43:57.000Z (almost 11 years ago)
- Last Synced: 2025-03-27T08:48:19.687Z (about 1 year ago)
- Language: JavaScript
- Size: 155 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).