A feature or option as define takes it. Every key besides the reserved ones (enabled, when,
options, requires, title, description) declares a setting with its JSON Schema and default. Settings
may not be named id, status, reason, by, rule, feature, inherited, error or renderedIn.
A misspelled reserved key, such as enable, reads as a setting and define throws because it has no schema.
Extended by#
Indexable#
[setting: string]: | boolean | FeatureRule | FeatureSettingSchema & { default: unknown; } | ((context) => boolean) | {[name: string]: FeatureNodeDefinition;}Properties#
| Property | Type | Description |
|---|---|---|
enabled? |
boolean |
The starting value. Left out, it is true. |
when? |
FeatureRule |
The starting rule for where it shows. Options default to their parent’s when. |
options? |
object |
Nested capabilities, by what they belong to. |
requires? |
(context) => boolean |
What it needs to work at all: a capability of the engine or the block. It always applies, cascades to every option inside, and nothing can override it. |