Hi,
is it possible to access the data of a UniTreeNode in javascript on the page?
I could not figure out how to do this.
Sencha treenode also has a data-property which can be accessed, but this is obviously not the same.
I added a value to a UniTreeNode like so:
type
TNodeInfo = class(TObject)
ID: Integer;
scrollTo: String;
end;
procedure addNode(NavTree: TUniTreeView; ID: Integer; sText, sAnchor: String);
var Nd: TUniTreeNode;
Ni: TNodeInfo;
begin
Ni := TNodeInfo.Create;
Ni.ID := ID;
Ni.scrollTo := sAnchor;
Nd := NavTree.Items.Add(nil, sText);
Nd.Data := Ni;
end;
In ExtEvents "itemclick" I can access record.data, but my added ID and scrollTo - properties are not available.
Thanks for help.
Steve