In standard html you have the ability to add additional data attributes to elements data-uid="1",
When i generate my treeview node items from code behind how can i add a custom data attribute to the specific node?
in the EJ1 version they have a option called LinkAttributes, what is the EJ2 equivalent of that option?
the reason i want these data attributes, is because i am attaching a context menu to the treeview node clicks and depending on the value of the data attribute decides what
context menu options should be displayed.
result.Add(new TreeViewModel
{
Id = (int)parentId,
Name = "Areas",
HasChild = db.Area.Any(a => a.SiteId == parentId),
Expanded = false,
Selected = false,
ImageUrl = "../Images/Icons/location-active.png",
HtmlAttributes = "?????????"
});