setAttribute function is undefined


#1

Hi all,

I am using the newest version dhtmlxTree. I checked the API page, and I am sure there is a setAttribute function. However, why I got the error message of “setAttribute function is undefined” when I call “myTree.setAttribute(id, name, value)”?

I read a thread that says in order to use setAttribute function, I need to import dhtmlxTree-attr.js. I couldn’t find this file in the package I downloaded. Where is this file?

Thanks,

Steven


#2

Hi
It is a PRO method. Sorry for mislead you, we will fix documentation ASAP


#3

Thanks for the reply. Is there other function in standard package that allows me to attach strings to a node by id?

Steven


#4

No worry. I’ve found a method to solve the problem. Thanks all.