Search code examples
jqueryjquery-jtable

How to add extra column actions in jquery jtable


I have been working on jquery jtables and having trouble in some conditions. I need to add two column tabs having button which do have their own action during click events. Can I do this with jquery jtable plugin api?


Solution

  • Yes you can add extra column in JTable. Here is example given for that.

    TestColumn: {
        title: 'Test',
        display: function (data) {
            return '<a href="...">'; //here you can call JavaScript function using  onclick
        }
    }