public override void Process(TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "div";
     output.Attributes.Add("class", "form-group row");
     output.TagMode = TagMode.StartTagAndEndTag;
     output
     .AddLabel($"{Name}Wrapper", Label)
     .AddFile(Name, Label, Placeholder, InvalidFeedback, ViewContext);
 }
 public override void Process(TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "div";
     output.Attributes.SetAttribute("class", "form-group row");
     output.TagMode = TagMode.StartTagAndEndTag;
     output
     .AddLabel(Name, Label)
     .AddReadOnlyTextInput(Name, Value);
 }
예제 #3
0
 public override void Process(TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "div";
     output.Attributes.Add("class", "form-group row");
     output.TagMode = TagMode.StartTagAndEndTag;
     output
     .AddLabel(Name, Label)
     .AddSelect(Name, Label, Items, Placeholder, Value, Grouping, ViewContext)
     .AddInvalidFeedback(InvalidFeedback ?? $"{Label} не выбран");
 }
 public override void Process(TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "div";
     output.Attributes.Add("class", "form-group row");
     output.TagMode = TagMode.StartTagAndEndTag;
     output
     .AddLabel(Name, Label)
     .AddTextInput(Name, Value, Label, Placeholder, IsPassword, ViewContext)
     .AddInvalidFeedback(InvalidFeedback ?? $"Некорректный {Label.ToLower()}");
 }