Search Docs
Loading...
Skip to content

Interface: FeatureRuleContext

What a rule receives.

blockId is the block the caller asked about, never filled in from the selection. selection is always the full selection. features reads other features; a rule that reads its own feature for the same block makes it unavailable with reason: 'error'.

Properties#

Property Type Description
engine CreativeEngine_2 -
blockId any -
selection DesignBlockId[] -
layout EditorLayout The layout the editor shows right now; rules run again when it changes.
features FeatureReader -