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.'); } } });
There was an error while loading. Please reload this page.