# HtmlAssetReferences

Makes generated pages reference the interactive runtimes as shared asset files instead of inlining them, so a bundle of many reports ships one copy of each…

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlAssetReferences.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetReferences.cs#L17)

**Modifiers**

sealed

**Attributes**

 `Fluent` 

Makes generated pages reference the interactive runtimes as shared asset files instead of inlining them, so a bundle of many reports ships one copy of each runtime. Write the files with [HtmlInteractiveAssetFiles](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/).

## Inheritance

- object
- HtmlAssetReferences

## Usage

 Explore 25 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 5

- Extension method [HtmlAssetReferences.IncludeIntegrity](/api/chartforgex-interactivity-html-htmlassetreferences/#extension-includeintegrity-chartforgex-interactivity-html-htmlassetreferences-boolean)
- Method [HtmlAssetReferencesFluent.IncludeIntegrity](/api/chartforgex-interactivity-html-htmlassetreferencesfluent/#method-includeintegrity-chartforgex-interactivity-html-htmlassetreferences-boolean)
- Property [HtmlChartInteractionOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlchartinteractionoptions/#property-externalassets)
- Property [HtmlGraphExplorerOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlgraphexploreroptions/#property-externalassets)
- Property [HtmlInteractiveDashboardOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlinteractivedashboardoptions/#property-externalassets)

### Accepted by parameters 20

- Extension method [HtmlAssetReferences.IncludeIntegrity](/api/chartforgex-interactivity-html-htmlassetreferences/#extension-includeintegrity-chartforgex-interactivity-html-htmlassetreferences-boolean) parameter `htmlAssetReferences`
- Method [HtmlAssetReferencesFluent.IncludeIntegrity](/api/chartforgex-interactivity-html-htmlassetreferencesfluent/#method-includeintegrity-chartforgex-interactivity-html-htmlassetreferences-boolean) parameter `htmlAssetReferences`
- Method [HtmlChartDataAssets.ReferenceMarkup](/api/chartforgex-interactivity-html-htmlchartdataassets/#method-referencemarkup-chartforgex-interactivity-html-htmlassetreferences-string-boolean) parameter `assets`
- Extension method [HtmlChartInteractionOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlchartinteractionoptions/#extension-externalassets-chartforgex-interactivity-html-htmlchartinteractionoptions-action-chartforgex-interactivity-html-htmlassetreferences) parameter `configure`
- Extension method [HtmlChartInteractionOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlchartinteractionoptions/#extension-externalassets-chartforgex-interactivity-html-htmlchartinteractionoptions-chartforgex-interactivity-html-htmlassetreferences) parameter `value`
- Method [HtmlChartInteractionOptionsFluent.ExternalAssets](/api/chartforgex-interactivity-html-htmlchartinteractionoptionsfluent/#method-externalassets-chartforgex-interactivity-html-htmlchartinteractionoptions-action-chartforgex-interactivity-html-htmlassetreferences) parameter `configure`
- Method [HtmlChartInteractionOptionsFluent.ExternalAssets](/api/chartforgex-interactivity-html-htmlchartinteractionoptionsfluent/#method-externalassets-chartforgex-interactivity-html-htmlchartinteractionoptions-chartforgex-interactivity-html-htmlassetreferences) parameter `value`
- Method [HtmlEnhanceAssets.ReferenceMarkup](/api/chartforgex-interactivity-html-htmlenhanceassets/#method-referencemarkup-chartforgex-interactivity-html-htmlassetreferences-string) parameter `assets`
- Constructor [HtmlEnhanceDocument.HtmlEnhanceDocument](/api/chartforgex-interactivity-html-htmlenhancedocument/#constructor-ctor-string-chartforgex-interactivity-html-htmlassetreferences) parameter `assets`
- Method [HtmlExternalAssets.Split](/api/chartforgex-interactivity-html-htmlexternalassets/#method-split-string-chartforgex-interactivity-html-htmlassetreferences) parameter `assets`
- Extension method [HtmlGraphExplorerOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlgraphexploreroptions/#extension-externalassets-chartforgex-interactivity-html-htmlgraphexploreroptions-action-chartforgex-interactivity-html-htmlassetreferences) parameter `configure`
- Extension method [HtmlGraphExplorerOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlgraphexploreroptions/#extension-externalassets-chartforgex-interactivity-html-htmlgraphexploreroptions-chartforgex-interactivity-html-htmlassetreferences) parameter `value`
- Method [HtmlGraphExplorerOptionsFluent.ExternalAssets](/api/chartforgex-interactivity-html-htmlgraphexploreroptionsfluent/#method-externalassets-chartforgex-interactivity-html-htmlgraphexploreroptions-action-chartforgex-interactivity-html-htmlassetreferences) parameter `configure`
- Method [HtmlGraphExplorerOptionsFluent.ExternalAssets](/api/chartforgex-interactivity-html-htmlgraphexploreroptionsfluent/#method-externalassets-chartforgex-interactivity-html-htmlgraphexploreroptions-chartforgex-interactivity-html-htmlassetreferences) parameter `value`
- Extension method [HtmlInteractiveDashboardOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlinteractivedashboardoptions/#extension-externalassets-chartforgex-interactivity-html-htmlinteractivedashboardoptions-action-chartforgex-interactivity-html-htmlassetreferences) parameter `configure`
- Extension method [HtmlInteractiveDashboardOptions.ExternalAssets](/api/chartforgex-interactivity-html-htmlinteractivedashboardoptions/#extension-externalassets-chartforgex-interactivity-html-htmlinteractivedashboardoptions-chartforgex-interactivity-html-htmlassetreferences) parameter `value`
- Method [HtmlInteractiveDashboardOptionsFluent.ExternalAssets](/api/chartforgex-interactivity-html-htmlinteractivedashboardoptionsfluent/#method-externalassets-chartforgex-interactivity-html-htmlinteractivedashboardoptions-action-chartforgex-interactivity-html-htmlassetreferences) parameter `configure`
- Method [HtmlInteractiveDashboardOptionsFluent.ExternalAssets](/api/chartforgex-interactivity-html-htmlinteractivedashboardoptionsfluent/#method-externalassets-chartforgex-interactivity-html-htmlinteractivedashboardoptions-chartforgex-interactivity-html-htmlassetreferences) parameter `value`
- Method [HtmlInteractiveTopologyRenderer.RenderPage](/api/chartforgex-interactivity-html-htmlinteractivetopologyrenderer/#method-renderpage-chartforgex-topology-topologychart-chartforgex-topology-topologyrenderoptions-chartforgex-interactivity-html-htmlassetreferences) parameter `externalAssets`
- Method [HtmlInteractiveTopologyRenderer.RenderPresentationPage](/api/chartforgex-interactivity-html-htmlinteractivetopologyrenderer/#method-renderpresentationpage-chartforgex-topology-topologychart-func-chartforgex-topology-preparedtopology-system-string-chartforgex-topology-topologyrenderoptions-chartforgex-interactivity-html-htmlassetreferences) parameter `externalAssets`

 Filter members   

    Show inherited   

 

## Constructors

 `public HtmlAssetReferences(string basePath)` [#](#constructor-ctor-string) 

[HtmlAssetReferences.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetReferences.cs#L17)

Initializes asset references rooted at basePath.

Parameters

**basePath string required**

The folder or URL the pages load assets from, for example assets/, ../shared/cfx/, or https://reports.example.test/assets/. A trailing slash is added when missing. Only relative paths and http/https URLs are accepted; network paths (//host, \\server), queries, and fragments are rejected.

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string BasePath { get; }` [#](#property-basepath) 

[HtmlAssetReferences.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetReferences.cs#L48)

Gets the normalized base path, always ending with /.

 `public bool IncludeIntegrity { get; set; }` [#](#property-includeintegrity) 

[HtmlAssetReferences.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetReferences.cs#L56)

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.

## Extension Methods

 `public static HtmlAssetReferences IncludeIntegrity(HtmlAssetReferences htmlAssetReferences, bool value = true)` [#](#extension-includeintegrity-chartforgex-interactivity-html-htmlassetreferences-boolean) 

Sets [HtmlAssetReferences.IncludeIntegrity](/api/chartforgex-interactivity-html-htmlassetreferences/): 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

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

<!-- PowerForge markdown artifact sha256:9A835F408F51E6ACA5AB6785D7BEF38C2B69FD23C81E13DB6B8466FB8BAB1EA8 -->
