[ 2 posts ]

Francois-Xavier Aeberhard

  • Username: Francois-Xavier Aeberhard
  • Joined: Mon Feb 07, 2011 7:59 pm
  • Posts: 6
  • GitHub: fxaeberhard
  • Gists: fxaeberhard
  • Offline
  • Profile

Treeview issue

Post Posted: Sun Feb 20, 2011 4:38 am
+0-
Hello,

First of all, this is my first post on the forum, so congrats to all of u for the amazing work. Then, more specifically, congrats for your Treeview module, it's great! I guess that's enough congrats for now.

I had small trouble though, since i was providing the constructor with a node object. In this case, the first level is not rendered

Code:
var treeNode =this.get("contentBox").one('ul');
var treeview = new Y.TreeView({ 
   srcNode: treeNode,
   contentBox: treeNode,
   boundingBox: treeNode,
   type : "TreeView"
});
treeview.render();


I had to replace with the element id to get it to work:
Code:
var treeNode = '#'+this.get("contentBox").one('ul').generateID();


I didnt know if this issues was known to you, so I did not get any further in the code. But if u need some help with debug, I'd be glad to help.

Francois-Xavier Aeberhard

  • Username: Francois-Xavier Aeberhard
  • Joined: Mon Feb 07, 2011 7:59 pm
  • Posts: 6
  • GitHub: fxaeberhard
  • Gists: fxaeberhard
  • Offline
  • Profile
Tags:

Re: Treeview issue

Post Posted: Mon Feb 21, 2011 11:53 am
+0-
So much for my first bug report, it does not show up if I specify the gallery build version as you did in your sample (like gallery: 'gallery-2011.01.03-18-30').

The internet (and this forum) is a bit more polluted because of me now :)
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum