ContentModifier Interface

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.

@see Content modifier rule reference documentation page

Extends

Properties

Name Type Description
applyOnNestedContent boolean | undefined Specifies whether calculatedProperties and  
class SingleSchemaClassSpecification | undefined Specification of ECClass whose content should be modified.  
ruleType "ContentModifier" Used for serializing to JSON.  

Inherited properties

Name Type Inherited from Description
calculatedProperties CalculatedPropertiesSpecification[] | undefined ContentModifiersList Specifications of calculated properties whose values are
onlyIfNotHandled boolean | undefined RuleBase Tells the library that the rule should only be handled if no other rule of the same type was handled previously (based on rule
priority number | undefined RuleBase Defines the order in which rules are handled, higher number means the rule is handled first.
propertyCategories PropertyCategorySpecification[] | undefined ContentModifiersList Specifications for custom categories.
propertyOverrides PropertySpecification[] | undefined ContentModifiersList Specifications for various property overrides that allow customizing property display.
relatedProperties RelatedPropertiesSpecification[] | undefined ContentModifiersList Specifications of related properties which are
requiredSchemas RequiredSchemaSpecification[] | undefined RuleBase A list of ECSchema requirements that need to be met for the rule to be used.

Defined in

Last Updated: 13 May, 2024