效果展示


功能介绍


gitHub


demo演示


查看演示


生成示例


Html Javacript
<table grid-manager="lmExOne"></table>
document.querySelector('[grid-manager="lmExOne"]').GM('init', { supportRemind: true ,supportAjaxPage:true ,supportSorting: true ,ajaxData: 'http://www.lovejavascript.com/learnLinkManager/getLearnLinkList' ,disableCache: false ,ajaxType: 'POST' ,query: {pluginId: 1} ,pageSize:20 ,columnData: [{ key: 'name', remind: 'the name', width: '100px', text: '名称', sorting: 'up' },{ key: 'info', remind: 'the info', text: '使用说明', sorting: '' },{ key: 'url', remind: 'the url', text: 'url' },{ key: 'createDate', remind: 'the createDate', width: '100px', text: '创建时间', template: function(createDate, rowObject){ return new Date(createDate); } },{ key: 'lastDate', remind: 'the lastDate', width: '100px', text: '最后修改时间', template: function(lastDate, rowObject){ return new Date(lastDate); } },{ key: 'action', remind: 'the action', width: '100px', text: '操作', template: function(action, rowObject){ return '<span class="plugin-action edit-action" learnLink-id="'+rowObject.id+'">编辑</span>' +'<span class="plugin-action del-action" learnLink-id="'+rowObject.id+'">删除</span>'; } } ] ,pagingBefore: function(query){ console.log('pagingBefore', query); } ,pagingAfter: function(data){ console.log('pagingAfter', data); } });

参数列表



事件列表



方法列表



常见问题



评论


这里仅提供一个简易的留言,如果有使用问题或建议,请移步 github.com 进行发布.


鸣谢



版本信息