Class LinkButtonTagHelper
- Namespace
- JJMasterData.Web.TagHelpers
- Assembly
- JJMasterData.Web.dll
public class LinkButtonTagHelper : TagHelper, ITagHelper, ITagHelperComponent
- Inheritance
-
LinkButtonTagHelper
- Implements
-
- Inherited Members
-
Constructors
public LinkButtonTagHelper(HtmlComponentFactory htmlComponentFactory, IMasterDataUrlHelper urlHelper)
Parameters
htmlComponentFactory
HtmlComponentFactory
urlHelper
IMasterDataUrlHelper
Properties
[AspMvcAction]
[HtmlAttributeName("asp-action")]
public string? Action { get; set; }
Property Value
- string
[HtmlAttributeName("color")]
public BootstrapColor Color { get; set; }
Property Value
- BootstrapColor
[AspMvcController]
[HtmlAttributeName("asp-controller")]
public string? Controller { get; set; }
Property Value
- string
[HtmlAttributeName("css-class")]
public string? CssClass { get; set; }
Property Value
- string
[HtmlAttributeName("enabled")]
public bool? Enabled { get; set; }
Property Value
- bool?
[HtmlAttributeName("icon")]
public IconType Icon { get; set; }
Property Value
- IconType
[LanguageInjection("Javascript")]
[HtmlAttributeName("on-client-click")]
public string? OnClientClick { get; set; }
Property Value
- string
[HtmlAttributeName("asp-all-route-data", DictionaryAttributePrefix = "asp-route-")]
public Dictionary<string, string> RouteValues { get; set; }
Property Value
- Dictionary<string, string>
[HtmlAttributeName("show-as-button")]
public bool ShowAsButton { get; set; }
Property Value
- bool
Text
[HtmlAttributeName("text")]
public string? Text { get; set; }
Property Value
- string
[HtmlAttributeName("tooltip")]
[LocalizationRequired]
public string? Tooltip { get; set; }
Property Value
- string
[HtmlAttributeName("type")]
public LinkButtonType? Type { get; set; }
Property Value
- LinkButtonType?
Methods
ProcessAsync(TagHelperContext, TagHelperOutput)
Asynchronously executes the TagHelper with the given context
and
output
.
Contains information associated with the current HTML tag.
A stateful HTML element used to generate an HTML tag.
A Task that on completion updates the output
.
By default this calls into Process(TagHelperContext, TagHelperOutput)..
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters
context
TagHelperContext
output
TagHelperOutput
Returns
- Task