Table of Contents

ScriptTagHelper<TOptions> Class

Definition

Namespace
Cuemon.AspNetCore.Razor.TagHelpers
Assemblies
Cuemon.AspNetCore.Razor.TagHelpers.dll
Source
src/Cuemon.AspNetCore.Razor.TagHelpers/ScriptTagHelper.cs

Provides a base-class for targeting <script> elements that supports ICacheBusting versioning.

public abstract class ScriptTagHelper<TOptions> : CacheBustingTagHelper<TOptions>, ITagHelper, ITagHelperComponent, IConfigurable<TOptions> where TOptions : TagHelperOptions, new()

Type Parameters

TOptions
Inheritance
ScriptTagHelper<TOptions>
Implements
IConfigurable<TOptions>
Derived
Inherited Members

Constructors

Name Description
ScriptTagHelper(IOptions<TOptions>, ICacheBusting)

Initializes a new instance of the ScriptTagHelper<TOptions> class.

Properties

Name Description
Defer

Gets or sets a value indicating whether the script is executed when the page has finished parsing.

Src

Gets or sets the source of the script.

Methods

Name Description
ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the TagHelper with the given context and output.

See Also