Skip to content

section-rules-editor-modal.token.ts

Modal token for the section rules editor sidebar.

Defines the data contract and default configuration for opening the section rules editor modal. Uses Umbraco’s UmbModalToken pattern with typed data in/value out.

Data passed when opening the modal:

PropertyTypeDescription
workflowNamestringName of the workflow (for context, not used in modal)
sectionIdstringTransform section ID (e.g., "preamble-p1-z1", "features")
sectionHeadingstringHuman-readable section heading for the modal title
elementsAreaElement[]The elements belonging to this section (from area detection)
existingRulesSectionRuleSet | nullExisting rules for this section, if any

Value returned when the modal is submitted:

PropertyTypeDescription
rulesSectionRuleSetThe updated rule set for this section
  • Alias: UpDoc.SectionRulesEditorModal
  • Type: sidebar
  • Size: medium