unsaved alert

unsaved alert

THEJASVITHEJASVI Posts: 31Questions: 9Answers: 0

how to use own modal or custom modal for unsaved alert in datatable how to use


  • colincolin Posts: 15,194Questions: 1Answers: 2,590

    Is this the same as this thread? https://datatables.net/forums/discussion/52226

  • allanallan Posts: 62,099Questions: 1Answers: 10,183 Site admin

    Yes, that is possible. If you have a look at the code you are using for the confirmation message you will see:

    return confirm( 'You have unsaved changes. Are you sure you want to exit?' );

    You would replace that with whatever API calls you need for whatever modal library you are going to use for the confirmation message.


This discussion has been closed.