How to add buttons to the generated form

How to add buttons to the generated form

ahmedsabaaahmedsabaa 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.

Answers

  • anjibmananjibman Posts: 115Questions: 10Answers: 0

    $('#cancelDiv').html('<html code for cancel button>');

  • riixriix Posts: 13Questions: 7Answers: 0

    TableTools.BUTTONS.editor_edit.formButtons.push({
    "label": "Cancel",
    "fn": function (e) {
    this.close();
    }
    });

This discussion has been closed.