Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:15
Divide List Based Menu
Poster: gsam
Dated: Wednesday October 22 2008 - 1:01:40 BST
I'm using the listbased_menu and I need to divide the list items into columns.
The example file shows:
Code:
buildListMenu("milonicmenu1","menuStyle","alwaysvisible=true;orientation='horizontal';top=10;left=10;")
buildListMenu("milonicmenu2","menuStyle2","alwaysvisible=true;orientation='vertical';top=300;left=310;")
buildListMenu("milonicpopupmenu","menuStyle","")
buildListMenu("milonicmenu2","menuStyle2","alwaysvisible=true;orientation='vertical';top=300;left=310;")
buildListMenu("milonicpopupmenu","menuStyle","")
and I believe this is where I should include the menu properties. I tried this:
Code:
buildListMenu("milonicmenu1","menuStyle","alwaysvisible=true;orientation='horizontal';top=10;left=10;divide=2;")
buildListMenu("milonicmenu2","menuStyle2","alwaysvisible=true;orientation='vertical';top=300;left=310;divide=2;")
buildListMenu("milonicpopupmenu","menuStyle","divide=2;")
buildListMenu("milonicmenu2","menuStyle2","alwaysvisible=true;orientation='vertical';top=300;left=310;divide=2;")
buildListMenu("milonicpopupmenu","menuStyle","divide=2;")
and it did not work. Does anyone know how to break a list into columns?
This is going to be a 2 level menu and only the second level will be divided.
Thanks for any help
Re: Divide List Based Menu
Poster: Ruth
Dated: Wednesday October 22 2008 - 5:49:25 BST
Hi,
The code is divides= not divide
EDIT: Also, for the menu that is set vertical, if you want it to divide you cannot use separators in the style, set them to separatorsize=0; otherwise it will not divide.
Ruth
Re: Divide List Based Menu
Poster: gsam
Dated: Wednesday October 22 2008 - 12:30:18 BST
Thanks,
Before I get to far into developing a large listbased menu, are there any menu or style properties available in the standard menu_data.js which cannot be used in a list menu?
Re: Divide List Based Menu
Poster: Ruth
Dated: Wednesday October 22 2008 - 14:24:11 BST
To be honest, I have no idea. As far as I can figure, there shouldn't be anything in style that wouldn't work since style is in the style section, not in the build part which takes the menu properties. I will try adding different menu properties and see if any of those don't work. I've never played with those before in relation to a list menu.
Ruth