ITagHelper implementation targeting <label> elements with an asp-for-required
attribute.
Initializes a new instance of LabelForRequiredTagHelper.
public Void LabelForRequiredTagHelper(generator)
Name | Type | Summary |
---|---|---|
generator | IHtmlGenerator | An IHtmlGenerator. |
An expression to be evaluated against the current model.
public ModelExpression ForRequired { get; set; }
Html generator
public IHtmlGenerator Generator { get; }
Execution order.
public Int32 Order { get; }
The view context.
public ViewContext ViewContext { get; set; }
Process the context to produce the tag helper output.
public Task ProcessAsync(context, output)
Does nothing if ForRequired is null
.
Name | Type | Summary |
---|---|---|
context | TagHelperContext | |
output | TagHelperOutput |
In this document