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

https://github.com/codera21/ajaxplugin

jQuery Plugin for making automatic paginated tables
https://github.com/codera21/ajaxplugin

Last synced: 3 months ago
JSON representation

jQuery Plugin for making automatic paginated tables

Awesome Lists containing this project

README

        

# ajaxPlugin

jQuery plugin like datatables

```
$('table').ajaxGrid({
requestType: 'get',
pageSize: 10,
defaultSortExpression: 'gid',
defaultSortOrder: 'desc',
tableHeading: '.table-header',
url: 'Paginate-AjaxGrid/app/api.php',
loadingImage: $('#loading-msg'),
NoRecordsFound: 'No Records Found',
id: 'gid',
rowClass: {class: " my-class"},
addClassToTd: {fields: ['gemail', 'gname'], class: "my-td"}
});

```
# refresh grid
```
$('table').trigger("refreshGrid", {filter: document.searchform.filter.value});

```
### example
```
postContent: [

{
control: $('' +
'' +
' Edit' +
'')
}

, {
control: $("" +
" " +
'' +
'' +
' Delete' +
''),
properties: [
{
propertyField: 'input[type=hidden]#ID',
property: 'value',
propertyValue: 'ID'
}
]
}

]

```