Javascript 如何将复选框列添加到jquery JTable?
我阅读了Jtable参考资料并看到了样本, 我想将复选框列添加到Jtable结果中,并且它们每个都有唯一的ID 默认情况下是否有Jquery Jtable复选框列? 或者每个人都能告诉我样本吗? 这是我的代码:Javascript 如何将复选框列添加到jquery JTable?,javascript,jquery,jquery-jtable,Javascript,Jquery,Jquery Jtable,我阅读了Jtable参考资料并看到了样本, 我想将复选框列添加到Jtable结果中,并且它们每个都有唯一的ID 默认情况下是否有Jquery Jtable复选框列? 或者每个人都能告诉我样本吗? 这是我的代码: $('#PersonTableContainer').jtable({ title: 'Table of people', actions: { listAction: '/GettingStarted/PersonLis
$('#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
}
}
});
你看过这一页了吗:
您可以这样添加复选框字段:
RowCheckbox: {
title: 'Status',
width: '12%',
type: 'checkbox',
values: { 'false': 'Passive', 'true': 'Active' },
defaultValue: 'true'
},