Guide to converting OFBiz menu component (menu-widget)

Source: Internet
Author: User

The menu component is usually used to generate the main menu bar on the screen, similar to main | data source | campaign | tracking | segment | contact list | reports | logout

O Definition menu

< Menu-item Name = "Datasource" Title = "$ {Uilabelmap. datasource }" > < Link Target = "Finddatasource" /> </ Menu-item >

The name attribute is used to identify a menu item.
The title attribute is used to display the name of the menu, but also the uilabelmap
Jump URI of a menu item specified by link

O highlight the specified menu
In the <screen>-<actions> section of the screen widget, add

< Set Field = "Headeritem" Value = "Reports" />

The value is the defined menu item to be highlighted.
 
O select whether to display menu items according to the conditions
Use the <condition> item in the <menu-item> node:

< Condition > < Not > < If-empty Field-name = "Userlogin" /> </ Not > </ Condition >
< Condition > < If-empty Field-name = "Userlogin" /> </ Condition >

O use CSS style sheets
Use the following attributes in the <menu-item> node:
Align-style = "" defines alignment
Widget-style = "" defines the style when the menu item is not selected
Selected-style = "" defines the style when the menu item is selected

O right-aligned menu items
Use align-style = "col-right" to enable the "col-Right" CSS style
Note that this style places the first menu item to the rightmost, the second to the left of the first, and so on.

This document is translated from OFBiz 4.0 cookbooks. I translate this document. You are welcome to reprint it. Please indicate the source.

Source Address: http://www.blogjava.net/hispark/archive/2008/10/09/233306.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.