public void Process(TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "div";
     output.Attributes.SetAttribute("class", context.MergeClasses("modal fade"));
     output.Attributes.SetAttribute("tabindex", -1);
     output.Attributes.SetAttribute("role", "dialog");
     output.Attributes.SetAttribute("data-hr-controller", "hr-relogin");
     output.Attributes.SetAttribute("data-hr-toggle", "dialog");
     output.Attributes.SetAttribute("style", context.MergeAttribute("style", "z-index:1400", ";"));
     output.Content.AppendHtml(markup);
 }
示例#2
0
 public static String MergeClasses(this TagHelperContext context, String value)
 {
     return(context.MergeAttribute("class", value));
 }