UIMenuItemMixin is a mixin containing rules that can be used by other designs.
We do not use it alone, we use it to add the rules to other designs. Presently there are 4 UI designs that use this mixin (see below).
Parameter Rules
actionSpec: | This parameter lets you supply a complete action as you would in an event handler. |
Example: | { type: this.actionType, ownerRefChain: this.ownerRefChain, ruleDefinition: this.ruleDefinition, refChainFromSelection: this.useRefChainFromSelection } |
actionType: | Add the action type here. |
Example: | "addModelRule" |
Choices: | “Evaluate" | "AddModelRule" | "DeleteModelRule” |
caption: | Text that will show up in the pop-up menu. |
Example: | "Make Cyan" |
separator: | If this value is set to true then the child's caption will not show up in the pop-up menu. Default is set to false. |
Example: | false |
sequenceNo: | This is the sequence order in which the caption will show up in the pop-up menu. |
Example: | 1 |
Mixins
BaseNode
BaseModel
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
actionSpec |
any |
{} |
UI |
Cached |
actionType |
string |
"" |
UI |
Cached |
caption |
string |
"" |
UI |
Cached |
separator |
boolean |
false |
UI |
Cached |
sequenceNo |
number |
UI |
Cached Required |
UI Design that use the UITitleMixin:
1.UIAddModelRuleMenuItem
2.UIDeleteModelRuleMenuItem
3.UIMenuItem
4.UIMenuItemSeparator