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"); }
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); }
protected void SetScriptTag() { var script = @"<script> $(function(){ " + Script + @" }); </script>"; RenderScriptAndStyle.ScriptSingle(guid, script, true); }
/// <summary> /// Produces HTML to insert scripts needed to insert CKEditor instances. To be used once per page, toward the top of a view. /// </summary> public static MvcHtmlString CKEditorHeaderScripts(this HtmlHelper help) { RenderScriptAndStyle.Script( @"<script src=""" + CK_Ed_Location + @"ckeditor.js"" type=""text/javascript""></script> <script src=""" + CK_Ed_Location + @"adapters/jquery.js"" type=""text/javascript""></script> <script type=""text/javascript""> function UpdateCKEditors() { $('." + CK_Ed_Class + "').ckeditorGet().updateElement(); } </script>"); return(MvcHtmlString.Empty); // return MvcHtmlString.Create(@"<script src=""" + CK_Ed_Location + @"ckeditor.js"" type=""text/javascript""></script> //<script src=""" + CK_Ed_Location + @"adapters/jquery.js"" type=""text/javascript""></script> //<script type=""text/javascript""> function UpdateCKEditors() { $('." + CK_Ed_Class + @"').ckeditorGet().updateElement(); } </script>"); }
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>"); }
public BootBox(HtmlHelper helper = null) : base(helper) { RenderScriptAndStyle.ScriptFileSingle(@"<script src=""" + ComponentUtility.GetWebResourceUrl(bootbox_js) + @"""></script>"); ButtonAttributes = new Dictionary <string, object>(); }