PDA

View Full Version : MenuItem -> "enabled" does not function correctly?


TheCatWhisperer
01-06-2004, 07:00 AM
I'm just wondering if the menu component is a little buggy? When i add the attribute {enabled="false"} to a menuitem, it shows up as disabled until i scroll over it or click it, in which cas it still executes ans forever there after (until the page is realoaded) is enabled again.

This may be a known bu already, but I don't remember reading about it.

/c

metasarah
01-06-2004, 08:53 AM
Thanks for reporting the bug! I've added it to our internally tracking system and we'll look at fixing it for the final release.

It is true that for menus have not received as much testing as some of the other components. We have focused most of our attention on the components used in a web form since we felt that these would be more commonly used; however, since menus were provided with the "redmond" component set we felt it was important to include menus in the new component set as well. Do you expect to use menus often in your apps, or were you just exploring?

Sarah

TheCatWhisperer
01-06-2004, 09:29 AM
Hi :)

We will definatly be using the menus in our app if we go with Laszlo (even if we don't, we will be using menues, whether dHTML, Flash, whatever). I'll keep an eye on the menu components as I "play" & report anything else I find, I've only been using the system for a couple days now & have recreated what it took weeks to do in dHTML in an erlier version of our product. You guys have done an awsome job :)

I'll liley be playing with most, if not all of the componenets to see how they work, how they can work together, etc while I'm evaluating Laszlo as an option for the next generation of our system, if you want me to try stuff, or play with a specific component , just let me know, I'd be glad to help :D

/c

TheCatWhisperer
01-06-2004, 10:11 AM
If I attach a menu to a list item, and I want the menu to appear "onmouseover", I also want it to go away after a second or two when if I mouseout. This could also be solved by having an always open menu. That is, a "list" that is actually a menu, that way, arrows appear in the right places (without the user having to create a custom class), and mouse over automatically work right.

EX of list with menu attached:

<ExtendedListItem color="iceblue2">Company
<menu name="topmenu" attach="right" >Document
<menuitem text="Name" />
<menuitem text="Owner" >
<menu name="Operators" >Document
<menuitem text="Name" />
<menuitem text="Headquarters" />
</menu>
</menuitem>
</menu>

<method event="onmouseover">
this.topmenu.setOpen(true);
</method>
</ExtendedListItem>


PS: "Document is in the exampl code on lines 2 & 5 in the code above. I copied this from the tutorials provided, What is the word "Document" there for? it does not seem to appear anywhere when the menu is rendered?? I haven't actually tried to remove it yet.. still very new, still learning...