How to add buttons to the generated form
How to add buttons to the generated form
ahmedsabaa
Posts: 1Questions: 1Answers: 0
Hi,
I have a feeling that I'm missing a completely easy and obvious thing to do but I would like to add a cancel button to the generated form while using the form editing. Basically next to the "Update" button I would like to have a "Cancel" button that does the exact same thing as clicking on the black mask in the background.
This discussion has been closed.
Answers
$('#cancelDiv').html('<html code for cancel button>');
TableTools.BUTTONS.editor_edit.formButtons.push({
"label": "Cancel",
"fn": function (e) {
this.close();
}
});