Action Menu Model
Username:  
Password:
  > Home
> User Guide
> Reference
v Portal Object
    o Page Menu Model
    o Action Menu Model
    o Object Reference
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Portal Object >> Action Menu Model <=  =>      <  1  2  3  4  5  6  7  >  
ItemAttribute Menu that triggers actions

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.

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd