mirror of https://github.com/abpframework/abp.git
2 changed files with 0 additions and 32 deletions
@ -1,13 +0,0 @@ |
|||||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|
||||
{ |
|
||||
public class AbpFormGroupTagHelper : AbpTagHelper<AbpFormGroupTagHelper, AbpFormGroupTagHelperService> |
|
||||
{ |
|
||||
public bool Checkbox { get; set; } |
|
||||
|
|
||||
public AbpFormGroupTagHelper(AbpFormGroupTagHelperService tagHelperService) |
|
||||
: base(tagHelperService) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,19 +0,0 @@ |
|||||
using System.Text.Encodings.Web; |
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers; |
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Microsoft.AspNetCore.Razor.TagHelpers; |
|
||||
|
|
||||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|
||||
{ |
|
||||
public class AbpFormGroupTagHelperService : AbpTagHelperService<AbpFormGroupTagHelper> |
|
||||
{ |
|
||||
public override void Process(TagHelperContext context, TagHelperOutput output) |
|
||||
{ |
|
||||
output.TagName = "div"; |
|
||||
output.Attributes.AddClass("form-group"); |
|
||||
if (TagHelper.Checkbox) |
|
||||
{ |
|
||||
output.Attributes.AddClass("form-check"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue