mirror of https://github.com/abpframework/abp.git
3 changed files with 23 additions and 2 deletions
@ -0,0 +1,19 @@ |
|||
using Microsoft.AspNetCore.Razor.TagHelpers; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Utils |
|||
{ |
|||
[HtmlTargetElement(Attributes = "abp-auto-focus")] |
|||
public class AbpAutoFocusTagHelper : AbpTagHelper |
|||
{ |
|||
[HtmlAttributeName("abp-auto-focus")] |
|||
public bool AutoFocus { get; set; } |
|||
|
|||
public override void Process(TagHelperContext context, TagHelperOutput output) |
|||
{ |
|||
if (AutoFocus) |
|||
{ |
|||
output.Attributes.Add("data-auto-focus", "true"); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,6 +1,6 @@ |
|||
using Microsoft.AspNetCore.Razor.TagHelpers; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.If |
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Utils |
|||
{ |
|||
[HtmlTargetElement(Attributes = "abp-if")] |
|||
public class AbpIfTagHelper : AbpTagHelper |
|||
Loading…
Reference in new issue