Table of Contents

Class CheckboxTagHelper

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

Constructors

CheckboxTagHelper(IStringLocalizer<MasterDataResources>, IControlFactory<JJCheckBox>, IHtmlHelper)

public CheckboxTagHelper(IStringLocalizer<MasterDataResources> stringLocalizer, IControlFactory<JJCheckBox> checkboxFactory, IHtmlHelper htmlHelper)

Parameters

stringLocalizer IStringLocalizer<MasterDataResources>
checkboxFactory IControlFactory<JJCheckBox>
htmlHelper IHtmlHelper

Properties

Configure

[HtmlAttributeName("configure")]
public Action<JJCheckBox>? Configure { get; set; }

Property Value

Action<JJCheckBox>

Enabled

public bool Enabled { get; set; }

Property Value

bool

For

[HtmlAttributeName("for")]
public ModelExpression? For { get; set; }

Property Value

ModelExpression

IsChecked

[HtmlAttributeName("value")]
public bool IsChecked { get; set; }

Property Value

bool

Label

[HtmlAttributeName("label")]
public string? Label { get; set; }

Property Value

string

Layout

[HtmlAttributeName("layout")]
public CheckboxLayout Layout { get; set; }

Property Value

CheckboxLayout

Name

[HtmlAttributeName("name")]
public string? Name { get; set; }

Property Value

string

OnChange

[HtmlAttributeName("onchange")]
public string? OnChange { get; set; }

Property Value

string

ShowLabel

[HtmlAttributeName("show-label")]
public bool ShowLabel { get; set; }

Property Value

bool

Tooltip

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

Property Value

string

ViewContext

[ViewContext]
[HtmlAttributeNotBound]
public ViewContext ViewContext { get; set; }

Property Value

ViewContext

Methods

Contextualize(ViewContext)

public void Contextualize(ViewContext viewContext)

Parameters

viewContext ViewContext

Process(TagHelperContext, TagHelperOutput)

Synchronously executes the TagHelper with the given context and output.

public override void Process(TagHelperContext context, TagHelperOutput output)

Parameters

context TagHelperContext

Contains information associated with the current HTML tag.

output TagHelperOutput

A stateful HTML element used to generate an HTML tag.