More menu on 'type' please?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
twing
Advanced
Advanced
Posts: 15
Joined: Wed Apr 20, 2005 7:17 am

More menu on 'type' please?

Post by twing »

Where can I find more info about the 'type' menu item properties? What's the different between form, dragable, header or tree? Any example out there?

Thanks,
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Usually the 'type' name refers to what its use is.

1. form, if you put a form in an item you would place type=form; in the aI string

2. draggable, there is a module to allow you to great menus that are draggable, if you use that and create that type of menu you'd insert type=draggable;

3. header, makes the aI string into a header, keeps it from changing the mouse pointer, from acting like a link, etc, and can be coded with the style headerbgcolor, headercolor etc.

4. tree, when you use the tree module to create a tree menu you would code the aI strings as type=tree.

5. html, that can be used when putting in html in the aI string

6. disabled, you can put that in an item to disable it. I've only seen it used with a function to disable an item at particular pages.

Those are all I know. I'm not sure if there are more.

Ruth
Last edited by Ruth on Tue Jul 12, 2005 2:02 pm, edited 1 time in total.
twing
Advanced
Advanced
Posts: 15
Joined: Wed Apr 20, 2005 7:17 am

example please

Post by twing »

Thanks for the reply,

I tried different type but I can't see any obvious differences. Whatever type I set, I still can put html text in the text property. eg text=Meni <img src=\"bla.gif\">;

Is there any example out there for each type?

Thanks,
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

As far as I know there isn't an 'example' for all the types. There are samples of some of them, the draggable menu, menuitems as headers. I didn't go through the whole menu sample list.

Could you tell me what the problem is, what you are trying to do? For example, putting in a type=header; doesn't mean that you are precluded from say using html in an item, type=header just means that the 'item' takes it's style, [colors] from whatever you set in the menuStyle as headerbgcolor, headercolor etc., type=draggable; tells it it's going to use the dragdrop.js module and allow you to move the menu, type=form; tells it the item is a form and so on.

Ruth
Post Reply