Class DOMGenerator
Facilitates generation of DOM manipulation code a-la React/JSX
Inheritance
System.Object
DOMGenerator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.dll
Syntax
public class DOMGenerator : IConfigurable
Fields
CONFIG_ESCAPE_ATTR
Declaration
public const string CONFIG_ESCAPE_ATTR = "__"
Field Value
Type |
Description |
System.String |
|
CONFIG_EVENT_PREFIX_ATTR
Declaration
public const string CONFIG_EVENT_PREFIX_ATTR = "on-"
Field Value
Type |
Description |
System.String |
|
CONFIG_JS_PREFIX_ATTR
Declaration
public const string CONFIG_JS_PREFIX_ATTR = "?"
Field Value
Type |
Description |
System.String |
|
CONFIG_LJS_ID_ATTR
Declaration
public const string CONFIG_LJS_ID_ATTR = "ljsid"
Field Value
Type |
Description |
System.String |
|
CONFIG_PRETTIFY_ATTR
Declaration
public const string CONFIG_PRETTIFY_ATTR = "pretty"
Field Value
Type |
Description |
System.String |
|
CONFIG_SECT_NAME_TEXT_NODE
Declaration
public const string CONFIG_SECT_NAME_TEXT_NODE = "ljstext"
Field Value
Type |
Description |
System.String |
|
CONFIG_WAVE_JS_ATTR
Declaration
public const string CONFIG_WAVE_JS_ATTR = "wave-js"
Field Value
Type |
Description |
System.String |
|
DEFAULT_WAVE_JS_NAME
Declaration
public const string DEFAULT_WAVE_JS_NAME = "WAVE"
Field Value
Type |
Description |
System.String |
|
JS_CURRENT_ELEMENT
Declaration
public const string JS_CURRENT_ELEMENT = "?this"
Field Value
Type |
Description |
System.String |
|
JS_ROOT_VAR
Declaration
public const string JS_ROOT_VAR = "Ør"
Field Value
Type |
Description |
System.String |
|
Properties
Default
Declaration
public static DOMGenerator Default { get; }
Property Value
LineEnding
Declaration
public string LineEnding { get; }
Property Value
Type |
Description |
System.String |
|
Space
Declaration
public string Space { get; }
Property Value
Type |
Description |
System.String |
|
WaveJS
Declaration
public string WaveJS { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public void Configure(IConfigSectionNode node)
Parameters
Generate(IConfigSectionNode, Int32, ref Int32, ref Dictionary<String, String>)
Declaration
public string Generate(IConfigSectionNode node, int indent, ref int indexInSource, ref Dictionary<string, string> dictIds)
Parameters
Type |
Name |
Description |
IConfigSectionNode |
node |
|
System.Int32 |
indent |
|
System.Int32 |
indexInSource |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
dictIds |
|
Returns
Type |
Description |
System.String |
|
GenerateSEFFunction(IConfigSectionNode, Int32, ref Int32, ref Dictionary<String, String>)
Declaration
public string GenerateSEFFunction(IConfigSectionNode node, int indent, ref int indexInSource, ref Dictionary<string, string> dictIds)
Parameters
Type |
Name |
Description |
IConfigSectionNode |
node |
|
System.Int32 |
indent |
|
System.Int32 |
indexInSource |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
dictIds |
|
Returns
Type |
Description |
System.String |
|
getIndent(Int32)
Declaration
public string getIndent(int extraSpaces = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
extraSpaces |
|
Returns
Type |
Description |
System.String |
|
Implements
Extension Methods