mirror of https://github.com/abpframework/abp.git
6 changed files with 1744 additions and 21 deletions
@ -0,0 +1,15 @@ |
|||
using Microsoft.AspNetCore.Razor.TagHelpers; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|||
{ |
|||
[HtmlTargetElement("abp-form-content", TagStructure = TagStructure.WithoutEndTag)] |
|||
public class AbpFormContentTagHelper : AbpTagHelper<AbpFormContentTagHelper, AbpFormContentTagHelperService>, ITransientDependency |
|||
{ |
|||
public AbpFormContentTagHelper(AbpFormContentTagHelperService tagHelperService) |
|||
: base(tagHelperService) |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
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 AbpFormContentTagHelperService : AbpTagHelperService<AbpFormContentTagHelper> |
|||
{ |
|||
public override void Process(TagHelperContext context, TagHelperOutput output) |
|||
{ |
|||
output.Attributes.Clear(); |
|||
output.TagName = "div"; |
|||
output.TagMode = TagMode.StartTagAndEndTag; |
|||
output.Content.SetContent(AbpFormContentPlaceHolder); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
Loading…
Reference in new issue