Skip to content

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.

public class TemplateNodeTransformer : StardewUI.Framework.Dom.INodeTransformer

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.

public TemplateNodeTransformer(StardewUI.Framework.Dom.SNode template);
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

IReadOnlyList<SNode>

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.