public SweetAlert Icon(SweetAlertIcon icon) { if (icon != SweetAlertIcon.None) { Attributes["icon"] = string.Format("'{0}'", icon.ToString().ToLower()); } SetScript(); return(this); }
public SweetAlertBs Type(SweetAlertIcon type) { if (type != SweetAlertIcon.None) { Attributes["type"] = string.Format("'{0}'", type.ToString().ToLower()); } SetScript(); return(this); }
public static SweetAlertBs SweetAlertBs(this IHtmlHelper helper, string message, string title = "پیام", SweetAlertIcon type = SweetAlertIcon.None) { return(new SweetAlertBs(helper).Text(message).Title(title).Type(type)); }
public static SweetAlertBs SweetAlertBs(string message, string title = "پیام", SweetAlertIcon type = SweetAlertIcon.None) { return(new SweetAlertBs().Text(message).Title(title).Type(type)); }
private async ValueTask ShowMessage(string titulo, string mensaje, SweetAlertIcon tipo) { await js.InvokeVoidAsync("Swal.fire", titulo, mensaje, Enum.GetName(typeof(SweetAlertIcon), tipo)); }