Horje
sweet alert 2 do action on confirm Code Example
sweet alert 2 do action on confirm
Swal.fire({  
  title: 'Do you want to save the changes?',  
  showDenyButton: true,  showCancelButton: true,  
  confirmButtonText: `Save`,  
  denyButtonText: `Don't save`,
}).then((result) => {  
	/* Read more about isConfirmed, isDenied below */  
    if (result.isConfirmed) {    
    	Swal.fire('Saved!', '', 'success')  
    } else if (result.isDenied) {    
    	Swal.fire('Changes are not saved', '', 'info')  
 	}
});




Javascript

Related
datatable without pagination Code Example datatable without pagination Code Example
If 'router-outlet' is an Angular component, then verify that it is part of this module. Code Example If 'router-outlet' is an Angular component, then verify that it is part of this module. Code Example
moment js subtract years Code Example moment js subtract years Code Example
javascript get random integer in given range Code Example javascript get random integer in given range Code Example
generate 50 random numbers between 1 and 500 in javascript Code Example generate 50 random numbers between 1 and 500 in javascript Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7