A Menu for Smart Devices is usually the entry point of a Smart Device application. It displays a set of items the user may choose from, for example, it may display items such as Work With for Smart Devices object, Panel for Smart Devices object, Menus, links to web pages or actions like making a phone call or sending an email.
You can create a Menu for Smart Devices from the New Object dialog of GeneXus:
Remarkable properties of Menu for Smart Devices object are listed below.
Once a Menu for Smart Devices has been created it will have a tree-like interface where you can add the items you wish to be displayed on it, and adjust their properties to your needs.
Selecting the 'Menu' item on the tree, there are the following properties available.
- Title property
Title for this Menu
- Background property
Menu background image. It must be an Image object.
- Header property
Menu header image. It must be an Image object.
- Class property
- Control property
Can be List, Tab, or Table.
- Appearance group
The Items are the elements that will compose the Menu (generally Work With for Smart Devices associated to the Transaction object or SD Panels). To add new Items drag the object from the folder view and drop it in the Items node of the Menu. Also, you can right-click on Items node following by Add Action.
Each Item has the following properties.
- Name property
Name of the option. With this name will be referred its action on the Event tab.
- Description property
Description of the option. If its value is empty, the property name will be is used. If you want an empty description on the Menu, it is needed to add a blank space in the property.
- Image property
An icon used for the option. It must be an Image object. If Control property for Menu node is set to Tabs, iOS and Android require the image file format to be PNG and only its transparency will be taken into account.
- Class property
MenuItem theme-class used for the option.
Overview of the development of GeneXus applications for smart devices (part 3 1:50)