The UIAddModelRuleMenuItem design is used as a child of the UIMenuItem design.
Parameter Rules
caption: | Text that will show up in the pop-up menu. |
Example: | "Make Cyan" |
dataType: | This is the ruleName type. |
Example: | "string" |
ruleBody: | This will be the value that is passed into the ruleName. |
Example: | "cyan" |
ruleName: | The name of the rule in the part design that is right clicked on in the UI graphics viewer. |
Example: | "color" |
useRefChainFromSelection: | In order to reference the model part selected in the UI graphics viewer this needs to be set to true. |
Example: | true |
Mixins
UIMenuItemMixin
BaseNode
BaseModel
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
caption |
string |
this.nha.isKindOf ("UIContainerMixin") ? this.nha : undefined |
UI |
Cached |
dataType |
string |
"Number" |
UI |
Cached |
ruleBody |
string |
0 |
UI |
Cached |
ruleName |
string |
|
UI |
Cached Required |
useRefChainFromSelection |
boolean |
false |
UI |
Cached |
Project Example:
In your kBridge Examples Projects folder open the project called ‘MyTable’.
Reference Location:
“world.mytable.mymenu.makecyan”
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.