Table Plugin for Displaying JSON Data

Add-ons
2026-07-26 03:14 4 次浏览 • 0 次下载 113.3KB
Table Plugin for Displaying JSON Data

Column names and the corresponding JSON values for each column

1
2
3
4
5
6
7
8
9
10
11
var cols = [
{ title:'ID', name:'id' ,width:100, align:'center' },
{ title:'User ID', name:'user_id' ,width:100, align:'center' },
{ title:'APPID', name:'app_id' ,width:100, align:'center'},
{ title:'Game Source', name:'from_app_id' ,width:100, align:'center'},
{ title:'Reward Status', name:'status' ,width:100, align:'center'},
{ title:'Time', name:'dt' ,width:200, align:'center'},
{ title:'Actions', name:'' ,width:150, align:'center', lockWidth:true, lockDisplay: true, renderer: function(){
return '<button class="btn btn-info">View</button> <button class="btn btn-danger">Delete</button>'}
}
];

AJAX Request

1
2
3
4
5
6
7
8
9
10
11
12
var mmg = $('#active-info').mmGrid({
cols: cols,
url: 'adwall/activeList',
params: {"appid":null,"status":null,"from_app_id":null},
width: 'auto',
height: '500px',
sortName: 'id',// Sort by ID
method: 'get', // Request Method
multiSelect: true,// Multiple Selection
checkCol: true, // Checkbox Column
indexCol: true // Index Column
});


星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare