Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ModalFactory.create({
- type: ModalFactory.types.SAVE_CANCEL,
- title: 'Delete item',
- body: 'Do you really want to delete?',
- })
- .then(function(modal) {
- modal.setSaveButtonText('Delete');
- var root = modal.getRoot();
- root.on(ModalEvents.save, function() {
- var elementid = clickedLink.data('id');
- // Do something to delete item
- });
- modal.show();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement