Skip to content
ChartForgeX
Class

HtmlAssetReferencesFluent

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
static

The fluent methods of HtmlAssetReferences, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • HtmlAssetReferencesFluent

Methods

public static HtmlAssetReferences IncludeIntegrity(HtmlAssetReferences htmlAssetReferences, bool value = true) #

Sets HtmlAssetReferences.IncludeIntegrity: Gets or sets a value indicating whether script and stylesheet references carry a Subresource Integrity (sha384) attribute. Off by default because browsers skip integrity-checked assets loaded from file:// pages; enable it for hosted bundles. Integrity-checked assets are requested with crossorigin="anonymous", so assets on another origin must be served with CORS headers.

Parameters

htmlAssetReferences ChartForgeX.Interactivity.Html.HtmlAssetReferences required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlAssetReferences The same instance.

Examples

// C# initializer or property                    // C# fluent
htmlAssetReferences.IncludeIntegrity = value;    htmlAssetReferences.IncludeIntegrity(value);