Page 1 of 1
Posted: November 15th, 2010, 4:38 am
anyone knows how to pass an array to a treeview UI element ?
it doesn't seems to work for me. All example I'm finding are XML nodes
Posted: November 15th, 2010, 11:51 am
check "SnpCreateTreeView.jsx" in the sdk folder of extendscript toolkit
Posted: November 16th, 2010, 1:39 am
yep I know, but it does use an XML with the "node" approach.
I wish something more like treeview.add(mybigArray), where mybigArray is a simple array object
can't it be done ?
Posted: November 16th, 2010, 2:23 pm
oh my bad! that's another one. but still add('node',...) method
oh well I guess it is the way to do it, will go with that then !
Posted: November 18th, 2010, 2:13 pm
you mean like you could feed it an array instead of doing it by hand with for loops?
I'm guessing you could do it with a prototype (?), but I'm curious if it can be done with a built-in funciton.