ThingWorx Model Definition in Composer > Visualization > Menus > Using the MenuEntry Data Shape
Using the MenuEntry Data Shape
You can use the MenuEntry Data Shape to create menus programmatically using infotable data. You can then bind this data in Mashup Builder to widgets that display menus, such as Menu Bar and Menu Button. The following table lists the field definitions of the MenuEntry Data Shape.
Field Definition
Description
Base Type
Primary Key
linkDestination
Sets the type of item to link to. You can set the value to URL or Mashup.
STRING
No
isDefault
Selects the item automatically when the menu is opened at run time. You can only configure one item as default.
BOOLEAN
No
parentMenuId
The ID of the parent menu item to assign the item to. Leave this field empty to display the item as a top-level menu.
STRING
No
imageURL
The name of the Media entity to use as an icon for the item.
IMAGELINK
No
linkTarget
Controls how the link target opens when linkType is set to Hyperlink.
Popup—Opens the link in a pop-up browser window.
New—Opens the link in a new browser tab.
Replace—Replaces the page on the current tab.
Empty—Replaces the current window.
STRING
No
description
An optional field that contains a description of the menu item.
STRING
No
menuId
A unique identifier for the menu item.
STRING
Yes
linkType
The supported values are: Hyperlink, Mashup, Menu, or Logout.
STRING
No
title
The text to display for the linked item in the menu.
STRING
No
isDisabled
The state of the menu item.
BOOLEAN
No
isHidden
The visibility of the menu item.
BOOLEAN
No
tooltip
The tooltip to display for the item.
STRING
No
tooltipIcon
The icon to display within the item tooltip. You can show SVG icons from the ptcs-icons library using the following syntax:
cds:<icon_name>
For more information, see Using SVG Icons.
IMAGELINK
No
Was this helpful?