Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- confirm_delete: function (params) {
- var title = null;
- if(params.title){title = params.title;} else{title = "confirm?";}
- iziToast.show({
- timeout: 20000,
- close: false,
- overlay: true,
- toastOnce: true,
- id: 'question',
- zindex: 9999,
- title: title,
- message: '',
- position: 'center',
- buttons: [
- ['<button class="ml-5" style="background-color: #3875d7; color: white; border-radius: 2px;">'+ App.lang.get("yes") +'</button>', function (instance, toast) {
- instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
- //call service
- if(params.callback){params.callback();}
- }],
- ['<button style="background-color: #333333; color: white; border-radius: 2px;">'+ App.lang.get("no") +'</button>', function (instance, toast) {
- instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
- }]
- ],
- onClosing: function(instance, toast, closedBy){
- console.info('Closing | closedBy: ' + closedBy);
- },
- onClosed: function(instance, toast, closedBy){
- console.info('Closed | closedBy: ' + closedBy);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment