ContentRule Interface

Defines content that's displayed in content controls (table view, property pane, etc.) and the content that's selected in unified selection controls



Name Type Description
condition undefined | string Defines a condition for the rule, which needs to be met in order to execute it.  
ruleType Content Used for serializing to JSON.  
specifications ContentSpecification[] Specifications that define content returned by the rule  

Inherited properties

Name Type Inherited from Description
onlyIfNotHandled undefined | boolean RuleBase Should this rule should be ignored if there is already an existing
rule with a higher priority.
priority undefined | number RuleBase Defines the order in which presentation rules will be evaluated and executed.

Defined in

Last Updated: 10 September, 2019