API Reference
Class
DataTablesSharedDataRegistry
Registry of shared datasets that can be injected at the document level under window.hfxShared.
Inheritance
- Object
- DataTablesSharedDataRegistry
Constructors
public DataTablesSharedDataRegistry() #Methods
public Void AddFromObjects(String key, IEnumerable<Object> rows) #Returns:
VoidAdds 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
- rows System.Collections.Generic.IEnumerable{System.Object}
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
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