Skip to content

Interface INodeTransformer

Definition

Namespace: StardewUI.Framework.Dom
Assembly: StardewUI.dll

Provides a method to transform nodes into other nodes.

public interface INodeTransformer

Remarks

Transformers are a form of preprocessing that apply before a view is bound; they operate on the parsed DOM content but not the runtime/bound nodes.

Members

Methods

Name Description
Transform(SNode) Transforms a node.

Details

Methods

Transform(SNode)

Transforms a node.

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.