JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with IsFolder

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
shamsubhaidani



Joined: 27 Jun 2007
Posts: 2

PostPosted: Wed Jun 27, 2007 9:57 pm    Post subject: Help with IsFolder Reply with quote

Hi,

I am having a problem with IsFolder. I think its somewhere in my configuration and would appreciate your help with this.

<script type="text/javascript">
var TREE7_NODES = [ // {{{
["Lorem ipsum dolor sit ", null, null, {format:{nobuttons:true}},
["Consectetaur adipisicing elit", null, null,
["Sed do eiusmod tempor", null, null],
["Incididunt", null, null],
["Ut labore", null, null,
["Et dolore magna", null, null],
["Aliqua", null, null],
["Ut enim ad minim", null, null]
]
],
["Veniam, quis", null, null,
["Nostrud", null, null],
["Exercitation ullamco", null, null],
["Laboris nisi", null, null]
],
["Ut aliquip", null, null],
["Ex ea commodo", null, null,
["Sub Sub Node 1", null, null],
["Sub Sub Node 2", null, null],
["Sub Sub Node 1", null, null],
["Sub Sub Node 2", null, null],
["Sub Sub Node 1", null, null],
["Sub Sub Node 2", null, null],
["Sub Sub Node 1", null, null],
["Sub Sub Node 2", null, null],
["Sub Sub Node 1", null, null],
["Sub Sub Node 2", null, null],
["Sub Sub Node 3", null, null]
],
["Excepteur sint", null, null],
["Libidig met", null, null],
["Velit esse", null, null]
],
['Parent node', null, null, {format:{isFolder:true}}],
["Test", null, null,{format:{isFolder:true}}]
]; // }}}

var TREE7_FORMAT = [ // {{{
// 0. left position
0,
// 1. top position
0,
// 2. show buttons ("+" and "-" images)
true,
// 3. button images: collapsed state, expanded state, blank image
["img/b/c.gif", "img/b/e.gif", "img/b/blank.gif"],
// 4. size of buttons: width, height, indent amount for childless nodes
[16, 16, 16],
// 5. show icons ("folder" and "document")
false,
// 6. icon images: closed folder, opened folder, document
["", "", ""],
// 7. size of icons: width, height
[20, 26],
// 8. indent amount for each level of the tree
[0, 0, 0, 48, 64, 80, 96, 112, 128],
// 9. background color for the tree
"",
// 10. default CSS class for nodes
"treeNodeL0",
// 11. individual CSS classes for levels of the tree
["treeNodeL0","treeNodeL1","treeNodeL2"],
// 12. "single branch" mode
true,
// 13. padding and spacing values for all nodes
[0, 0],
// 14. "explorer-like" mode
false,
// 15. images for "explorer-like" mode
//["img/b/e_folder_closed.jpg", "img/b/e_folder_opened.jpg", "img/b/e_document.jpg", "", "", "", "", "", "", ""],
// 16. size of images for "explorer-like" mode: width, height
[20, 26],
// 17. store tree state into cookies
true,
// 18. relative positioning mode
true,
// 19. initial space for the relatively positioned tree: width, height
[200, 50],
// 20. resize container of the relatively positioned tree
true,
// 21. change background-color and style for selected node
true,
// 22. background color for unselected node, background color for selected node, class for selected node
["", "white", "treeNodeSelected"],
// 23. text wrapping margin
20,
// 24. vertical alignment for buttons and icons
"top"
]; // }}}
</script>


Thanks
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri Jul 06, 2007 5:54 am    Post subject: Reply with quote

What problem you're having? Can you give some more details? Script version, browser version, etc.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1