ABP's Confirmation Box

Before using it, you need to add abp.sweet-alert.jsa 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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324779095&siteId=291194637