API Reference

Show custom popup with JS


w2w.showPopup({
 title: 'Save Changes',
 content: '<h1>Do you want to save your changes?</h1>',
 buttons: [
  { text: 'Cancel', action: () => hidePopup(), style: 'popup-btn-secondary' },
  { text: 'Continue', action: [() => saveData(), () => hidePopup()] },
 ]
});