Upcoming Grails-UI 1.1 New Features: Menus

To make a menubar like this:

example of a new gui:menubar tag

You’ll need to include a ‘menu’ component in your gui:resources tag, then try this markup:

My default, menubars will render to the document body, but you can provide an optional renderTo attribute and have it render to any other container. I think it would be a cool idea to combine this with Marc Palmer’s new Navigation Plugin in order to provide the automatic creation of snappy menus.

The menubar is really just a group of menu components, which you can construct yourself as a context menu:

menu

The markup for a menu is extremely similar to a menubar:

For working examples, check out the new branch on the guidemo project in Google Code.

This is the first of several installments on new features that will be a part of Grails-UI 1.1. I’m still working on it, and I’m not sure when the release date will be, but if you’d like to try it out in your application, you can get the source from SVN:

svn checkout http://svn.codehaus.org/grails-plugins/grails-grails-ui/branches/RELEASE_1_1-SNAPSHOT

Then package with grails package-plugin, and install into your project: grails install-plugin /path/to/snapshot/grails-grails-ui-1.1-SNAPSHOT.zip

This entry was posted in grails plugins and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. vennela
    Posted July 22, 2009 at 11:38 pm | Permalink

    Do you have any updates on Grails ui1.1. please let me know.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
Check out the latest GroovyMag to see an interview with me about the 1.1 release of GrailsUI: