Page 1 of 1
TreeView
Posted: November 15th, 2010, 4:38 am
by francoisgfx
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
thx
Re: TreeView
Posted: November 15th, 2010, 11:51 am
by berniebernie
check "SnpCreateTreeView.jsx" in the sdk folder of extendscript toolkit
Re: TreeView
Posted: November 16th, 2010, 1:39 am
by francoisgfx
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 ?
Re: TreeView
Posted: November 16th, 2010, 2:23 pm
by francoisgfx
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 !
Thanks
Re: TreeView
Posted: November 18th, 2010, 2:13 pm
by berniebernie
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.