The ItemAttribute function if used is defined in the web page as a client script. This function takes three arguments in the following order:
itemAttribute() Argument |
Description |
item |
The Address of the item. |
type |
The name of the structure (LevelOpen, LevelClose, MenuOpen, MenuClose and ItemWhole). |
job |
If there are multiple @ItemAttribute in a single format specification string, they will be assigned a "job" number, starting from 1 for the first occurance from the start of the string. |
|
|
|
|
You need to return a value to BEE Portal to substitute into the places you have spacified @ItemAttribute in. This is widely used to return a positional value to build the initial "menu plates" (trigged by buildMenuItemsAtLevel()).
For example, in an interactive menu design, you want to display the next level menu immediately below the parent item, then you should specify in the MenuOpen array a @ItemAttribute to indicate a pixel to the left. Then in ItemAttribute() you return the value based on the position of the item (can be found in ItemPosition[item]) when type is MenuOpen.
Please be careful that the menu is built in the next level. If you find the item is at level 2 (from ItemLevel[item], you are building its menu at level 3, so position as such. |