Skip to content
ChartForgeX
Class

HtmlEnhanceDocument

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
sealed

Emits the enhance runtime once for one HTML document, however many charts the document contains.

Inheritance

  • object
  • HtmlEnhanceDocument

Constructors

public HtmlEnhanceDocument(string? nonce = null, HtmlAssetReferences? assets = null) #

Creates a per-document emitter.

Parameters

nonce string? = null optional
An optional CSP nonce.
assets ChartForgeX.Interactivity.Html.HtmlAssetReferences? = null optional
When set, reference the shared files instead of inlining them.

Methods

public string Assets() #

Returns the runtime markup the first time and an empty string afterwards.

Returns

string HTML markup, or an empty string.

Properties

public bool Written { get; } #

Gets whether the runtime markup has been returned for this document.