示例#1
0
 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);
        }