We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
User can specify custom javascript code which will be executed on cancel or confirm action using confirmAction or cancelAction.
confirmAction
cancelAction
var modal = new pathfora.Message({ layout: 'modal', msg: 'Click either button to trigger the callback.', confirmAction: { name: 'Modal Confirm button', callback: function() { console.log('Confirm button clicked.'); } }, cancelAction: { name: 'Modal Cancel button', callback: function() { console.log('Cancel button clicked.'); } } });