datatables editor create dialog - how to change create button to btn-success

datatables editor create dialog - how to change create button to btn-success

evan123evan123 Posts: 8Questions: 6Answers: 1

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Create

Is what datatables creates

I would like to change the "btn btn-success btn-primary" to just "btn btn-succcess"

I put in
$.fn.dataTable.Editor.classes.form.button = "btn btn-success";

Which got something in ... but not sure how to get the btn-primary removed now ...

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin
    DataTable.ext.buttons.create.formButtons.className = '';
    DataTable.ext.buttons.edit.formButtons.className = '';
    

    Should remove the btn-primary class from the edit and create views for Editor's Bootstrap 5 integration. The remove button uses btn-danger which you might or might not want.

    Allan

Sign In or Register to comment.