jquery jtable custom click event

后端 未结 1 904
Happy的楠姐
Happy的楠姐 2021-02-09 19:33

I have implemented jtable of jquery. I want to perform some operation on row click and also want to put separate image and also want to add my own click event on that image.

相关标签:
1条回答
  • 2021-02-09 20:30

    Finally, Done.

    CustomAction: {
        title: '',
        width: '1%',
        sorting: false,
        create: false,
        edit: false,
        list: true,
        display: function (data) {
            if (data.record) {
                return '<button title="Edit Record" class="jtable-command-button jtable-edit-command-button" onclick="alert(' + data.record.TicketId + '); return false;"><span>Edit Record</span></button>';
            }
        }
    }
    

    Thanks.

    0 讨论(0)
提交回复
热议问题