custom function for buttons

custom function for buttons

jk.quejk.que Posts: 5Questions: 2Answers: 0

how can i make a custom function call for a customize button
for example..

        "buttons": [
            {
                text: 'Fail all selected',
                action: function ( e, dt, node, config ) {
                    failAllStudents(); // this function failed, I dont know how to call it for the button
                }
            }
        ],

thanks in advance

This discussion has been closed.