setAttribute function is undefined

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?



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

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


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