Please enable JavaScript to view this site.

Knowledge Bridge Documentation

Help version: 3.3.8

Navigation: Reference  > K4 BaseLibrary Designs > UIAddModelRuleMenuItem

UIAddModelRuleMenuItem Discussion

Scroll Prev Top Next More

 

 

UIMenuItem0

Description

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
Parameter

dataType

string

"Number"

UI

Cached
Parameter

ruleBody

string

 0

UI

Cached
Parameter

ruleName

string

 

UI

Cached
Parameter

Required

useRefChainFromSelection

boolean

false

UI

Cached
Parameter

 

 

kBridgeExampleIcon

 

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.

 

UIAddModelRuleButton2

 

 

 

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.

 

 

UIMenuItem0

 

 

 

 

 

 

 

 

 

 

Knowledge Bridge from Engingeering Intent is a full-featured engineering and sales automation environment