Description
The UIMenuItemSeparator is used to supply a Pop-Up menu item to a designated part in the graphic viewer model. With the help of a UIAddModelRuleMenuItem as a child you can create a pop-up window when a model part is right clicked and select from the list that you made. You can make a main list along with a sub-list as shown above.
The UIMenuItemSeparator design is similar in many respects to the UIMenuItem design.
Parameter Rules
caption: | Text that will show up in the User Interface. |
Example: | "More" |
sequenceNo: | Sorting order. |
Example: | 0 |
Mixins
UIMenuItemMixin
BaseNode
BaseModel
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
caption |
any |
this.nha.isKindOf ("UIContainerMixin") ? this.nha : undefined |
UI |
Cached |
sequenceNo |
number |
0 |
UI |
Cached |
Project Example:
In your kBridge Examples Projects folder open the project called ‘MyTable’.
Reference Location:
“world.mytable.mymenuseparator”
Link: https://knowledgebridge.engineer/projects
Open the MyTable project.
Press the UI start icon to start the User Interface.
Right Click on the top book and a pop-up menu will appear. Select a color from the menu and the book will change color. When you select 'Restore to Default'
the default will be displayed.