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
Enabled
public bool Enabled { get; set; }
Property Value
For
[HtmlAttributeName("for")]
public ModelExpression? For { get; set; }
Property Value
IsChecked
[HtmlAttributeName("value")]
public bool IsChecked { get; set; }
Property Value
Label
[HtmlAttributeName("label")]
public string? Label { get; set; }
Property Value
Layout
[HtmlAttributeName("layout")]
public CheckboxLayout Layout { get; set; }
Property Value
Name
[HtmlAttributeName("name")]
public string? Name { get; set; }
Property Value
OnChange
[HtmlAttributeName("onchange")]
public string? OnChange { get; set; }
Property Value
ShowLabel
[HtmlAttributeName("show-label")]
public bool ShowLabel { get; set; }
Property Value
Tooltip
[HtmlAttributeName("tooltip")]
public string? Tooltip { get; set; }
Property Value
ViewContext
[ViewContext]
[HtmlAttributeNotBound]
public ViewContext ViewContext { get; set; }
Property Value
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
TagHelperContextContains information associated with the current HTML tag.
output
TagHelperOutputA stateful HTML element used to generate an HTML tag.