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