Base solution for your next web application
Open Closed

Abp.message Callback? #127


User avatar
0
a. h. created

Is there an easy angular hack that I'm missing to allow a abp.message.success "OK" click to have a callback?

I am looking at the abp.sweet-alert.js file and see where I could add the option of a callback there (using sweet alerts), but there isn't an easy hack outside of it except creating my own extended service.

Any ideas?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Message api has a callback (added in v0.5.13.0, see: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/releases/tag/v0.5.13.0">https://github.com/aspnetboilerplate/as ... /v0.5.13.0</a>).

    Example usage:

    abp.message.warn('hey, this is a warning message', 'and this is title')
        .done(function(){
            alert('you clicked OK :)');
        });
    

    Thanks.