Pop-up menu
Adds a pop-up menu to other views. You can pin it to a menu item when the menu item is clicked or when the view loses the focus.

null

Appearance

Behavior

Extends:
com.ibm.bpm.coach.CoachView
Methods:

Inherited addClass(name, [replaced])
Add or replace the CSS classes for this view.
Example

addMenuItem(item)
Add menu item to end of item list





JSON Structure of menu items
{

     command : string

     itemType : "L"=Label | "S"=Seperator | "H"=Section Header

     icon : string

     iconText : string

     badgeShape : "N"=None | "S"=Square | "R"=Rounded

     badgeColor : "D"=Default | "P"=Primary | "I"=Info | "S"=Success | "W"=Warning | "G"=Danger

     badgeText : string

}

Inherited getData() Returns: {Object}
Retrieve the bound data associated with the view. It applies only to views with bound data.
Example

getLabel() Returns: {string}
Get label associated with control

getLabelPlacement() Returns: {string}
Get label placement for control

getLabelWidth() Returns: {string}
Get label width of PopupMenu control (e.g. 50px, 20%, 2em - omitting the unit assumes px)

getMenuItem(index) Returns: {MenuItem}





JSON Structure of menu items
{

     command : string

     itemType : "L"=Label | "S"=Seperator | "H"=Section Header

     icon : string

     iconText : string

     badgeShape : "N"=None | "S"=Square | "R"=Rounded

     badgeColor : "D"=Default | "P"=Primary | "I"=Info | "S"=Success | "W"=Warning | "G"=Danger

     badgeText : string

}
Get menu item at specified index.

getMenuItemCount() Returns: {integer}
Get number of items in menu

getMenuItemIndex(when)
Get the index of the specified menu item or -1 if the menuItem cannot be located.

getMenuItems() Returns: {MenuItem[]}





JSON Structure of menu items
{

     command : string

     itemType : "L"=Label | "S"=Seperator | "H"=Section Header

     icon : string

     iconText : string

     badgeShape : "N"=None | "S"=Square | "R"=Rounded

     badgeColor : "D"=Default | "P"=Primary | "I"=Info | "S"=Success | "W"=Warning | "G"=Danger

     badgeText : string

}
null

getType() Returns: {string}
Get descriptive string representing the type of control

Inherited hide(collapseFlag)
Hide the view.
Example

Inherited isBound() Returns: {boolean}
Indicate the bound status of the view.

Inherited isEnabled() Returns: {boolean}
Check whether the view is enabled.
Example

Inherited isLabelVisible() Returns: {boolean}
Check whether the view label is visible.
Example

isMenuVisible() Returns: {boolean}
Get the visibility of the menu

Inherited isValid() Returns: {boolean}
Return the valid status as last set by the setValid() method.
Example

Inherited isVisible() Returns: {boolean}
Check whether the view is visible.
Example

Inherited propagateUpValueChange(event) Returns: {boolean}
Propagate the value change of the view up through the parent views.
Example

Inherited recalculate()
Applicable only to formula-enabled views!
Triggers the re-evaluation of the formula
for the view, if a formula was specified. If the view is not formula-enabled, recalculate() does nothing.
Example

removeAllMenuItems()
Removes all menu items

removeMenuItem(index)
Remove menu item at specified index

Inherited setEnabled(enabled, required)
Enable or disable the view.
Example

setHorizontalAlignment(alignment)
Set the horizontal alignment of the menu. NOTE: to avoid ambiguity always set the size style using "L"|"R"

setLabel(label)
Set label for control

setLabelPlacement(placement)
Set label placement for control

Inherited setLabelVisible(visible)
Show or hide the view label.
Example

setLabelWidth(labelWidth)
Set label width of PopupMenu control (e.g. 50px, 20%, 2em - omitting the unit assumes px)

setMenuItem(items)
Set menu items to display in the popup menu

setMenuItemBadgeText(text, index)
Set badge text for an item

setMenuItemIcon(icon, index)
Set badge text for an item

setMenuVisible(vis)
Set menu visibility. This is the only way to change the visibility of the menu. It will not pop up just by clicking on controls inside of it

setTargetElement(element)
Aligns the popup menu relative to the specified DOM element

Inherited setValid(valid, errorText)
Flag the view as valid or invalid.
Example

setVerticalAlignment(alignment)
Set the vertical alignment of the menu. NOTE: to avoid ambiguity always set the size style using "T"|"B"

Inherited setViewData(data, createPseudoBinding)
Set or update the bound data associated with the view. It applies only to views with bound data.

Note: It should only be used with simple type bindings, or complex type bindings with simple type properties.
It should not be used with bindings that have properties that are lists or compext types. For complex types, set the bindings by using
the binding.set pattern, as described in the Binding data and configuration options documentation section.
Example

Inherited setVisible(visible, collapse)
Show or hide the view.
Examples

Inherited show()
Show this view.
Example

Inherited triggerFormulaUpdates([phase])
Broadcast the expression trigger for the specified view.
Example