You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Timo Thomas (JIRA)" <de...@myfaces.apache.org> on 2005/11/25 18:04:56 UTC

[jira] Created: (MYFACES-876) support JSCookMenu 1.4x "clickOpen" property

support JSCookMenu 1.4x "clickOpen" property
--------------------------------------------

         Key: MYFACES-876
         URL: http://issues.apache.org/jira/browse/MYFACES-876
     Project: MyFaces
        Type: Wish
  Components: Tomahawk  
    Versions: Nightly, 1.1.1    
    Reporter: Timo Thomas
    Priority: Minor


The "clickOpen" property of the JSCookMenu theme was introduced in Version 1.4 and allows to control the click/hover behaviour of the menu. This is especially useful to achieve a more common look-and-feel of the menu by setting clickOpen = 2 (mouse click required to open main menu).

To achieve this, 

- the JSCookMenu library has to be upgraded (and possibly the renderers have to be adjusted - MyFacesHack.js seems to be ok)
- an attribute for the "clickOpen" property has to be added to the jscookMenu tag
- the clickOpen attribute should be rendered as follows (example taken from the JSCookMenu Demos page http://www.cs.ucla.edu/~heng/JSCookMenu/demo.html):

var tmpClickOpen = cmThemePanel.clickOpen;
cmThemePanel.clickOpen = 2;
cmDraw ('clickMenu', clickMinibar, 'vbr', cmThemePanel, 'ThemePanel');
cmThemePanel.clickOpen = tmpClickOpen;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira