mirror of https://github.com/abpframework/abp.git
6 changed files with 90 additions and 4 deletions
@ -0,0 +1,27 @@ |
|||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Nav |
||||
|
{ |
||||
|
public enum AbpNavbarStyle |
||||
|
{ |
||||
|
Default, |
||||
|
Dark, |
||||
|
Light, |
||||
|
Dark_Primary, |
||||
|
Dark_Secondary, |
||||
|
Dark_Success, |
||||
|
Dark_Danger, |
||||
|
Dark_Warning, |
||||
|
Dark_Info, |
||||
|
Dark_Light, |
||||
|
Dark_Dark, |
||||
|
Dark_Link, |
||||
|
Light_Primary, |
||||
|
Light_Secondary, |
||||
|
Light_Success, |
||||
|
Light_Danger, |
||||
|
Light_Warning, |
||||
|
Light_Info, |
||||
|
Light_Light, |
||||
|
Light_Dark, |
||||
|
Light_Link |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
using Microsoft.AspNetCore.Razor.TagHelpers; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Nav |
||||
|
{ |
||||
|
[HtmlTargetElement("span", Attributes = "abp-navbar-text")] |
||||
|
public class AbpNavbarTextTagHelper : AbpTagHelper<AbpNavbarTextTagHelper, AbpNavbarTextTagHelperService> |
||||
|
{ |
||||
|
public AbpNavbarTextTagHelper(AbpNavbarTextTagHelperService tagHelperService) |
||||
|
: base(tagHelperService) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
using Microsoft.AspNetCore.Razor.TagHelpers; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Microsoft.AspNetCore.Razor.TagHelpers; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Nav |
||||
|
{ |
||||
|
public class AbpNavbarTextTagHelperService : AbpTagHelperService<AbpNavbarTextTagHelper> |
||||
|
{ |
||||
|
public override void Process(TagHelperContext context, TagHelperOutput output) |
||||
|
{ |
||||
|
output.Attributes.AddClass("navbar-text"); |
||||
|
output.Attributes.RemoveAll("abp-navbar-text"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue