+
+
";
+
+ output.TagName = "div";
+ output.Attributes.SetAttribute("role", "dialog");
+ output.Attributes.SetAttribute("id", Id);
+ output.Attributes.SetAttribute("aria-labelledby", $"{context.UniqueId}Label");
+ output.Attributes.SetAttribute("tabindex", "-1");
+ var classNames = "modal fade";
+ if (output.Attributes.ContainsName("class"))
+ {
+ classNames = string.Format("{0} {1}", output.Attributes["class"].Value, classNames);
+ }
+ output.Attributes.SetAttribute("class", classNames);
+ output.Content.AppendHtml(template);
+ if (modalContext.Body != null)
+ {
+ output.Content.AppendHtml(modalContext.Body);
+ }
+ output.Content.AppendHtml("
");
+ if (modalContext.Footer != null)
+ {
+ output.Content.AppendHtml("");
+ }
+
+ output.Content.AppendHtml("