I'm creating my new home page using linb (0.3beta from IDE sources).
When I create Treebar using this code:
----------------------------8<-----------------------------------
this.template = '';
this.appearance = '';
this.behavior = '';
self = this;
var onMenuRequest = function(menu, value, threadid, mptr){
if(value == null) return;
path = self.lang+value;
linb.ajax('request.php','menu='+menu+'&path='+path,function(msg){
var menu;
eval('menu = '+msg);
menu.sort();
self.menuCache[path] = menu;
linb.thread(threadid).setCache('response',menu);
},function(msg){
self.printPage([{title:'Error',content:'Error requesting data<br/>'}]);
},false,'GET');
}
this.projectsMenuContent = linb.create('TreeBar',{
multi : false,
items : [
{id : '/projects/linb',caption : 'LINB', sub:[]},
{id : '/projects/configure', caption : 'Simple makefile generator'}
]
},null, this.template, this.appearance, this.behavior);
this.mainMenuContent.onRequestData(function(value, threadid){
onMenuRequest('main',value,threadid, self.mainMenuContent);
});
----------------------------8<-----------------------------------
That gives me a flat tree look of Treebar. But when Treebar is expanded, then if there is another expandable bar then it is rounded.
First example code of Treebar gives me 'flat' version of Treebar and second 'rounded'.
I'm using Linux Fedora Core 6.91 x86-64 with Firefox 2.0.0.2
full source code can be downloaded from:
http://student.if.uj.edu.pl/Marek.Skorkowski/js/page.linbpage can be seen (page is in 'alpha' state. I have reports that it isn't working with IE)
http://student.if.uj.edu.pl/Marek.Skorkowski