我阅读了 Jtable 参考并看到了示例,我想将复选框列添加到 Jtable 结果中,并且每个都有唯一的 ID。
默认情况下有 Jquery Jtable 复选框列吗?
或者每个人都可以告诉我样品吗?这是我的代码:
$('#PersonTableContainer').jtable({
title: 'Table of people',
actions: {
listAction: '/GettingStarted/PersonList',
createAction: '/GettingStarted/CreatePerson',
updateAction: '/GettingStarted/UpdatePerson',
deleteAction: '/GettingStarted/DeletePerson'
},
fields: {
PersonId: {
key: true,
list: false
},
Name: {
title: 'Author Name',
width: '40%'
},
Age: {
title: 'Age',
width: '20%'
},
RecordDate: {
title: 'Record date',
width: '30%',
type: 'date',
create: false,
edit: false
}
}
});