Basaingeal / Razor.SweetAlert2

A Razor class library for interacting with SweetAlert2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onOpen and showLoading

ioer2008 opened this issue · comments

How can I call this?

onOpen: function() {

Swal.showLoading ()

}

This would likely be the most concise way.

var options = new SweetAlertOptions
{
    OnOpen = new SweetAlertCallback(async () => { await Swal.ShowLoadingAsync(); }, this)
};

There's a bit more information on callback functions here.

thanks