Class TemplateNodeTransformer
Definition
Namespace: StardewUI.Framework.Dom
Assembly: StardewUI.dll
Transforms a template
node based on the structure (attributes, children, etc.) of the instantiating node.
Inheritance
Object ⇦ TemplateNodeTransformer
Implements
INodeTransformer
Members
Constructors
Name | Description |
---|---|
TemplateNodeTransformer(SNode) | Transforms a template node based on the structure (attributes, children, etc.) of the instantiating node. |
Methods
Name | Description |
---|---|
Transform(SNode) | Transforms a node. |
Details
Constructors
TemplateNodeTransformer(SNode)
Transforms a template
node based on the structure (attributes, children, etc.) of the instantiating node.
Parameters
template
SNode
The template node.
Methods
Transform(SNode)
Transforms a node.
public System.Collections.Generic.IReadOnlyList<StardewUI.Framework.Dom.SNode> Transform(StardewUI.Framework.Dom.SNode source);
Parameters
source
SNode
The node to transform.
Returns
The transformed nodes, if any transform was applied, or a single-element list with the original source
if the transformation is not applicable to this node.