CheckBox Customization Rule

CheckBox rules provide a way to create a checkbox for specific types of ECInstance's.

Attributes

Name Required? Type Default Meaning
Filtering
priority No number 1000 Defines the order in which presentation rules are evaluated.
onlyIfNotHandled No boolean false Should this rule be ignored if there is already an existing rule with a higher priority.
condition No ECExpression "" Defines a condition for the rule, which needs to be met in order to execute it.
CheckBox Attributes
propertyName No string undefined Name of boolean type ECProperty which is bound with the check box state. When set, property value gets bound to checkbox state.
useInversedPropertyValue No boolean false Should property value be inversed for the check box state. Note: Only makes sense when bound to an ECProperty.
defaultValue No boolean false Default value to use for the check box state. Note: Only makes sense when not bound to an ECProperty.
isEnabled No boolean true Indicates whether check box is enabled or disabled.

Example

{
  "ruleType": "CheckBox",
  "priority": 999,
  "stopFurtherProcessing": true,
  "condition": "ThisNode.IsOfClass(\"MyItem\", \"MySchema\")",
  "propertyName": "MyProperty",
  "useInversedPropertyValue": true,
  "isEnabled": false
}

Last Updated: 21 May, 2020