Action Menus

What is an action menu?

The action menu concept comprise of two overall menus.

  1. The first is available through pressing the burger menu item on any page.
  2. The second is available through long pressing an item on any page with a list.
    E.g. long pressing on an order in the order list page.

All menu items can be positioned in the two menus, using the menuPlacement for placement in the burger menu, and the contextMenuPlacement for placement in the context menu.
Both attributes expect a number for priority, or "OFF" to disable the functionality in that menu. The default for all menu items is 20.
When the menu is generated, all menu items enabled for their respective menus are ordered by the placement number, where less is more.

An example of how to setup the placement of menu items.

<page id="Receive" type="OrderList" icon="mainmenureceive">
  ...
  <actions>
    ...
     <open id="Attachments" icon="attachment" title="@{Attachments}" *menuPlacement="OFF" contextMenuPlacement="3"*/>
     <open id="RegisterImage" icon="camera" title="@{AttachImages}" *menuPlacement="OFF" contextMenuPlacement="2"*/>
   </actions>
</page>

Both menu items are disabled for the burger menu by setting the value of menuPlacement to "OFF".
Their placement in the context menu is "RegisterImage" first and "Attachments" below as RegisterImage has a lower placement number - They do not need to be sequential.
This also means that IF placement is used, the order of appearance in the configuration file does not have any effect. However, if placement is not used, their order in the configuration file does matter.

Remember "less is more".

Overview

Explore the Mobile WMS App