How to use the sweetalert2.getConfirmButton function in sweetalert2

To help you get started, we’ve selected a few sweetalert2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sweetalert2 / ngx-sweetalert2 / src / swal-partial-targets.ts View on Github external
    public readonly confirmButton = () => Swal.getConfirmButton();
github willyb321 / media_mate / app / renderjs / downloader.js View on Github external
return new Promise((resolve, reject) => {
		if (swal.getConfirmButton) {
			const res = swal.getConfirmButton();
			if (res) {
				resolve(res);
			}
		}
		reject(new Error('No swal found'));
	});
}