mirror of https://github.com/abpframework/abp.git
2 changed files with 41 additions and 8 deletions
@ -0,0 +1,34 @@ |
|||
using Microsoft.AspNetCore.Razor.TagHelpers; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers |
|||
{ |
|||
public class AbpCardTagHelper : TagHelper |
|||
{ |
|||
public override void Process(TagHelperContext context, TagHelperOutput output) |
|||
{ |
|||
//TODO: Remove abp-modal HTML element which is unnecessary!
|
|||
output.TagName = "div"; |
|||
output.Attributes.Add("class", "card"); //TODO: Append class if any exists
|
|||
} |
|||
} |
|||
|
|||
public class AbpCardHeaderTagHelper : TagHelper |
|||
{ |
|||
public override void Process(TagHelperContext context, TagHelperOutput output) |
|||
{ |
|||
//TODO: Remove abp-modal HTML element which is unnecessary!
|
|||
output.TagName = "div"; |
|||
output.Attributes.Add("class", "card-header"); //TODO: Append class if any exists
|
|||
} |
|||
} |
|||
|
|||
public class AbpCardBodyTagHelper : TagHelper |
|||
{ |
|||
public override void Process(TagHelperContext context, TagHelperOutput output) |
|||
{ |
|||
//TODO: Remove abp-modal HTML element which is unnecessary!
|
|||
output.TagName = "div"; |
|||
output.Attributes.Add("class", "card-body"); //TODO: Append class if any exists
|
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue