Before using it, you need to add abp.sweet-alert.js
a reference to it, otherwise it will not work properly.
confirmation box
abp.message.info('some info message', 'some optional title');
abp.message.success('some success message', 'some optional title'); abp.message.warn('some warning message', 'some optional title'); abp.message.error('some error message', 'some optional title');
From top to bottom are: normal message, success message, warning message, error message, as follows:
confirmation dialog
abp.message.confirm(
'User admin will be deleted.',
'Are you sure?',
function (isConfirmed) { if (isConfirmed) { //...delete user } } );
This dialog box will pop up a confirmation dialog box, prompting whether to continue, as shown in the figure:
where the second parameter is an optional parameter.