API Reference
Class
FancyTreeNode
Represents a single node within a FancyTree control.
Inheritance
- Object
- FancyTreeNode
Constructors
FancyTreeNode 2 overloads
public FancyTreeNode() #Initializes a new instance of the FancyTreeNode class.
public FancyTreeNode(String title, String icon = "", Boolean folder = false) #Initializes a new instance of the FancyTreeNode class with values.
Parameters
- title System.String
- Node title.
- icon System.String = ""
- Node icon.
- folder System.Boolean = false
- Indicates if the node is a folder.
Methods
AddNode 3 overloads
public FancyTreeNode AddNode(Action<FancyTreeNode> config) #Returns:
FancyTreeNodeAdds a child node.
Parameters
- node HtmlForgeX.FancyTreeNode
- Node to add.
Returns
The added node.
public FancyTreeNode AddNode(String title, String icon = null, Boolean nodeFolder = false) #Returns:
FancyTreeNodeCreates and adds a child node.
Parameters
- title System.String
- Child title.
- icon System.String = null
- Child icon.
- nodeFolder System.Boolean = false
- Whether the child is a folder.
Returns
The created node.
AddNode(System.Action{HtmlForgeX.FancyTreeNode} config) #Creates and configures a child node using a callback.
Parameters
- config System.Action{HtmlForgeX.FancyTreeNode}
- Configuration delegate.
Returns
The created node.
public FancyTreeNode Icon(String icon) #Returns:
FancyTreeNodeSets the icon for the node.
Parameters
- icon System.String
- Icon name.
Returns
The current FancyTreeNode.
public FancyTreeNode Title(String title) #Returns:
FancyTreeNodeSets the display title for the node.
Parameters
- title System.String
- Title text.
Returns
The current FancyTreeNode.
Inherited Methods
Properties
public String NodeTitle { get; set; } #JsonPropertyName("title") JsonIgnore(Condition = 3)Display text for the node.
public String NodeIcon { get; set; } #JsonPropertyName("icon") JsonIgnore(Condition = 3)Name of the icon used for the node.
public Nullable<Boolean> NodeFolder { get; set; } #JsonPropertyName("folder") JsonIgnore(Condition = 3)Gets or sets whether the node represents a folder.
public List<FancyTreeNode> Nodes { get; set; } #JsonPropertyName("children")Child nodes contained under this node.