Soft Delete Button Styling for Bootstrap4 not working

Soft Delete Button Styling for Bootstrap4 not working

mccwebdevmccwebdev Posts: 20Questions: 6Answers: 2

I'm using a version of this example to perform soft deletes, however, I'm using the Bootstrap 4 styling.

https://editor.datatables.net/examples/api/softDelete.html

When my modal displays it doesn't include the btn-danger class to style the delete button red. Is there a way to add this class to the delete button in this example?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @mccwebdev ,

    If you change line 61 in that example to be

    buttons: [{text: 'Delete' , className: 'fred', action: function() {editor.submit()}}]
    

    you should be good!

    Cheers,

    Colin

  • mccwebdevmccwebdev Posts: 20Questions: 6Answers: 2

    Worked like a charm, thanks!

This discussion has been closed.