Table of Contents

Class LinkButtonTagHelper

Namespace
JJMasterData.Web.TagHelpers
Assembly
JJMasterData.Web.dll
public class LinkButtonTagHelper : TagHelper, ITagHelper, ITagHelperComponent
Inheritance
LinkButtonTagHelper
Implements
Inherited Members

Constructors

LinkButtonTagHelper(HtmlComponentFactory, IMasterDataUrlHelper)

public LinkButtonTagHelper(HtmlComponentFactory htmlComponentFactory, IMasterDataUrlHelper urlHelper)

Parameters

htmlComponentFactory HtmlComponentFactory
urlHelper IMasterDataUrlHelper

Properties

Action

[AspMvcAction]
[HtmlAttributeName("asp-action")]
public string? Action { get; set; }

Property Value

string

Color

[HtmlAttributeName("color")]
public BootstrapColor Color { get; set; }

Property Value

BootstrapColor

Controller

[AspMvcController]
[HtmlAttributeName("asp-controller")]
public string? Controller { get; set; }

Property Value

string

CssClass

[HtmlAttributeName("css-class")]
public string? CssClass { get; set; }

Property Value

string

Enabled

[HtmlAttributeName("enabled")]
public bool? Enabled { get; set; }

Property Value

bool?

Icon

[HtmlAttributeName("icon")]
public IconType Icon { get; set; }

Property Value

IconType

OnClientClick

[LanguageInjection("Javascript")]
[HtmlAttributeName("on-client-click")]
public string? OnClientClick { get; set; }

Property Value

string

RouteValues

[HtmlAttributeName("asp-all-route-data", DictionaryAttributePrefix = "asp-route-")]
public Dictionary<string, string> RouteValues { get; set; }

Property Value

Dictionary<string, string>

ShowAsButton

[HtmlAttributeName("show-as-button")]
public bool ShowAsButton { get; set; }

Property Value

bool

Text

[HtmlAttributeName("text")]
public string? Text { get; set; }

Property Value

string

Tooltip

[HtmlAttributeName("tooltip")]
[LocalizationRequired]
public string? Tooltip { get; set; }

Property Value

string

Type

[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