HtmlAssetReferences
ChartForgeX.Interactivity.Html
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.
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
Accepted by parameters 20
- Extension method HtmlAssetReferences.IncludeIntegrity
- Method HtmlAssetReferencesFluent.IncludeIntegrity
- Method HtmlChartDataAssets.ReferenceMarkup
- Extension method HtmlChartInteractionOptions.ExternalAssets
- Extension method HtmlChartInteractionOptions.ExternalAssets
- Method HtmlChartInteractionOptionsFluent.ExternalAssets
- Method HtmlChartInteractionOptionsFluent.ExternalAssets
- Method HtmlEnhanceAssets.ReferenceMarkup
- Constructor HtmlEnhanceDocument.HtmlEnhanceDocument
- Method HtmlExternalAssets.Split
- Extension method HtmlGraphExplorerOptions.ExternalAssets
- Extension method HtmlGraphExplorerOptions.ExternalAssets
- Method HtmlGraphExplorerOptionsFluent.ExternalAssets
- Method HtmlGraphExplorerOptionsFluent.ExternalAssets
- Extension method HtmlInteractiveDashboardOptions.ExternalAssets
- Extension method HtmlInteractiveDashboardOptions.ExternalAssets
- Method HtmlInteractiveDashboardOptionsFluent.ExternalAssets
- Method HtmlInteractiveDashboardOptionsFluent.ExternalAssets
- Method HtmlInteractiveTopologyRenderer.RenderPage
- Method HtmlInteractiveTopologyRenderer.RenderPresentationPage
Constructors
public HtmlAssetReferences(string basePath) #Initializes asset references rooted at basePath.
Parameters
- basePath string
- 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
Properties
public string BasePath { get; } #Gets the normalized base path, always ending with /.
public bool IncludeIntegrity { get; set; } #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) #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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
htmlAssetReferences.IncludeIntegrity = value; htmlAssetReferences.IncludeIntegrity(value);