HtmlForgeX

API Reference

Class

DataTablesSharedDataRegistry

Registry of shared datasets that can be injected at the document level under window.hfxShared.

Inheritance

  • Object
  • DataTablesSharedDataRegistry

Constructors

Methods

public Void AddFromObjects(String key, IEnumerable<Object> rows) #
Returns: Void

Adds a dataset from objects by projecting to plain key/value rows suitable for JSON. Objects can be dictionaries or POCOs with public properties.

Parameters

key System.String requiredposition: 0
rows System.Collections.Generic.IEnumerable{System.Object} requiredposition: 1
Emit(HtmlForgeX.Document arg1) #

Emits a single inline script that initializes window.hfxShared with all registered datasets. Called automatically by Document during final rendering.

Parameters

arg1 HtmlForgeX.Document required
GetPropertyKeys(System.String arg1) #

Returns a distinct, stable list of property keys present in the shared dataset registered under key. The order is derived from the first row (if it is a dictionary) and then augmented by any additional keys found in subsequent rows, preserving insertion order.

Parameters

arg1 System.String required