public SweetAlertBs(HtmlHelper helper = null) : base(helper)
        {
            RenderScriptAndStyle.StyleFileSingle(@"<link href=""" + ComponentUtility.GetWebResourceUrl(sweetalert_bs_css) + @""" rel=""stylesheet"" />");
            RenderScriptAndStyle.ScriptFileSingle(@"<script src=""" + ComponentUtility.GetWebResourceUrl(sweetalert_bs_min_js) + @"""></script>");

            ConfirmButtonClass("btn btn-primary");
        }
Ejemplo n.º 2
0
 public BsDialog(HtmlHelper helper = null) : base(helper)
 {
     ButtonAttributes = new Dictionary <string, object>();
     RenderScriptAndStyle.StyleFileSingle(@"<link href=""" + ComponentUtility.GetWebResourceUrl(BsDialog_min_css) + @""" rel=""stylesheet"" />");
     RenderScriptAndStyle.ScriptFileSingle(@"<script src=""" + ComponentUtility.GetWebResourceUrl(BsDialog_mi_js) + @"""></script>");
     Method(BsMethod.Show);
 }
 public SweetAlert(HtmlHelper helper = null) : base(helper)
 {
     RenderScriptAndStyle.StyleFileSingle(@"<link href=""" + ComponentUtility.GetWebResourceUrl(sweetalert_css) + @""" rel=""stylesheet"" />");
     RenderScriptAndStyle.ScriptFileSingle(@"<script src=""" + ComponentUtility.GetWebResourceUrl(sweetalert_js) + @"""></script>");
 }