Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/385.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将复选框列添加到jquery JTable?_Javascript_Jquery_Jquery Jtable - Fatal编程技术网

Javascript 如何将复选框列添加到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

我阅读了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
            }
        }
    });
你看过这一页了吗:

您可以这样添加复选框字段:

            RowCheckbox: {
                title: 'Status',
                width: '12%',
                type: 'checkbox',
                values: { 'false': 'Passive', 'true': 'Active' },
                defaultValue: 'true'
            },