SmartyGrid
v1.3.6
Published
SmartyGrid is a jQuery plugin and provides a user interface component to build table grid quickly.
Downloads
7
Maintainers
Readme
SmartyGrid
SmartyGrid is a jQuery plugin and provides a user interface component to build table grid quickly. (GitHub WebSite)
AJAX WebService Specification
HTTP Request
HTTP Method = GET, example as follows:
GET http://domain/web-service.php?offset=20&size=5&sorts[title]=DESC&columns[]=username&columns[]=title&columns[]=email HTTP/1.1
| URL Paramater | Type | Description | | :------------- | :------------- | :------ | | size | Integer | Size of return rows | | offset | Integer | Start offset of table | | columns[] | String[] | Return columns | | search[] | String[] | It's search keywork | | equals[%Colume%] | String[] | Column value filter | | sorts[%Colume%] | String (ASC|DESC) | Sort column and rule |
HTTP Response
Web service must return the JSON format (Web + Json = Good), Content-type = application/json, example as follows:
{
"code":0,
"message":"success",
"data":{
"list":[
{"username":"sj","title":"Bug Maker","email":"[email protected]"},
{"username":"david","title":"Developer","email":"[email protected]"},
{"username":"fins","title":"Developer","email":"[email protected]"},
{"username":"steve","title":"CEO","email":"[email protected]"},
{"username":"dog","title":"-","email":"[email protected]"}
],
"total":36
}
}
CSS Framework Supported
- Bootstrap 2
- Bootstrap 3
License
Apache License Version 2.0