Content modifier rule
TypeScript type: ContentModifier.
Content modifiers are used to modify how instances of specified ECClasses are displayed in content which is produced using content rules. They do not produce any content by themselves.
Attributes
Name | Required? | Type | Default |
---|---|---|---|
Picking attributes | |||
class |
No | SingleSchemaClassSpecification |
Any class |
requiredSchemas |
No | RequiredSchemaSpecification[] |
[] |
priority |
No | number |
1000 |
Content Modifiers | |||
relatedProperties |
No | RelatedPropertiesSpecification[] |
[] |
calculatedProperties |
No | CalculatedPropertiesSpecification[] |
[] |
propertyCategories |
No | PropertyCategorySpecification[] |
[] |
propertyOverrides |
No | PropertySpecification[] |
[] |
Attribute: class
Specification of ECClass whose content should be modified. The modifier is applied to all content if this attribute is not specified.
Type | SingleSchemaClassSpecification |
Is Required | No |
Default Value | Any class |
Attribute: requiredSchemas
A list of ECSchema requirements that need to be met for the rule to be used.
Type | RequiredSchemaSpecification[] |
Is Required | No |
Default Value | [] |
Attribute: priority
Defines the order in which rules are handled, higher number means the rule is handled first. If priorities are equal, the rules are handled in the order they're defined.
Type | number |
Is Required | No |
Default Value | 1000 |
Attribute: relatedProperties
Specifications of related properties which are included in the generated content.
Type | RelatedPropertiesSpecification[] |
Is Required | No |
Default Value | [] |
Attribute: calculatedProperties
Specifications of calculated properties whose values are generated using provided ECExpressions.
Type | CalculatedPropertiesSpecification[] |
Is Required | No |
Default Value | [] |
Attribute: propertyCategories
Specifications for custom categories. Simply defining the categories does nothing - they have to be referenced from property specification defined in propertyOverrides by id
.
Type | PropertyCategorySpecification[] |
Is Required | No |
Default Value | [] |
Attribute: propertyOverrides
Specifications for various property overrides that allow customizing property display.
Type | PropertySpecification[] |
Is Required | No |
Default Value | [] |
Last Updated: 20 June, 2023