BootstrapTreeViewNodeCollection.Add(String, String, String, String) Method
Adds a new node to the collection and specifies the node’s display text, name, associated image and URL.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
public BootstrapTreeViewNode Add(
string text,
string name,
string iconCssClass,
string navigateUrl
)
#Parameters
Name | Type | Description |
---|---|---|
text | String | A String value specifying the node’s display text. Initializes the node’s Tree |
name | String | A String value specifying the name which identifies the created node. Initializes the node’s Tree |
icon |
String | A String value specifying the CSS class of the node image. Initializes the item’s Bootstrap |
navigate |
String | A String value specifying the URL to which the browser navigates when the node is clicked. Initializes the node’s Tree |
#Returns
Type | Description |
---|---|
Bootstrap |
A Bootstrap |
#Remarks
Use the Add method to add a new node with the specified settings to the end of the BootstrapTreeViewNodeCollection object.