Updates an anchor element with properties from a link object.

[HtmlTargetElement]
public class AnchorTagHelper
Inheritance:
ObjectTagHelperAnchorTagHelper

Constructors

AnchorTagHelper(IRedaktContext) Default constructor. Services are injected by the IoC container.

Properties

Target Specifies the target to generate a href for. Can be a INodeViewModel derived page view model, IPublishedContent object, Link object, or page id string. Optionally, a different target culture for the url may be set with the rx-culture attribute.
EmptyAction Specifies the action to take when the url cannot be generated due to missing published content or an invalid page id.

Methods

ProcessAsync(TagHelperContext, TagHelperOutput)