Class DataWebHeaderTagHelper
A tag helper used to render a custom data web header element if the current user is a data web user.
Inherited Members
Namespace: DataWeb.TagHelpers
Assembly: DataWeb.Core.dll
Syntax
[HtmlTargetElement("asp-dw-header")]
public sealed class DataWebHeaderTagHelper : TagHelper, ITagHelper, ITagHelperComponent
Properties
User
Gets or sets the current user.
Declaration
public IUser User { get; set; }
Property Value
Type | Description |
---|---|
IUser |
Methods
Process(TagHelperContext, TagHelperOutput)
Modifies the output by updating the tag name and setting the culture attribute if the current user is a data web user. If the user is not a data web user, the output is suppressed.
Declaration
public override void Process(TagHelperContext context, TagHelperOutput output)
Parameters
Type | Name | Description |
---|---|---|
TagHelperContext | context | Contains information associated with the current HTML element. |
TagHelperOutput | output | Represents the content and attributes of the HTML element. |