Class DictionaryTreeController
Inheritance
System.Object
Namespace: Umbraco.Web.Trees
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoTrees")]
[Tree("translation", "dictionary", TreeGroup = "settingsGroup")]
public class DictionaryTreeController : TreeController, IDiscoverable
Methods
View SourceCreateRootNode(FormDataCollection)
Declaration
protected override TreeNode CreateRootNode(FormDataCollection queryStrings)
Parameters
Type | Name | Description |
---|---|---|
FormDataCollection | queryStrings |
Returns
Type | Description |
---|---|
TreeNode |
GetMenuForNode(String, FormDataCollection)
Returns the menu structure for the node
Declaration
protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The id of the tree item |
FormDataCollection | queryStrings | All of the query string parameters passed from jsTree |
Returns
Type | Description |
---|---|
MenuItemCollection |
GetTreeNodes(String, FormDataCollection)
The method called to render the contents of the tree structure
Declaration
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The id of the tree item |
FormDataCollection | queryStrings | All of the query string parameters passed from jsTree |
Returns
Type | Description |
---|---|
TreeNodeCollection |
Remarks
We are allowing an arbitrary number of query strings to be passed in so that developers are able to persist custom data from the front-end to the back end to be used in the query for model data.