Skip to content

Data Structure: Repeaters, Responsive Data and Global Styles#342

Merged
rami-elementor merged 1 commit into
masterfrom
data-structure
May 14, 2026
Merged

Data Structure: Repeaters, Responsive Data and Global Styles#342
rami-elementor merged 1 commit into
masterfrom
data-structure

Conversation

@rami-elementor
Copy link
Copy Markdown
Member

@rami-elementor rami-elementor commented May 14, 2026

✨ PR Description

1. Problem & Context

Completing documentation for three core data structure concepts—repeaters, responsive values, and global styles—that were previously stubbed as "WIP". Establishes reference specs for how Elementor persists these features in JSON.

2. What Changed (Where)

  • repeaters.md: Added structure spec, _id mechanics, and four JSON examples (simple, mixed types, responsive, nested)
  • responsive-data.md: Added device suffix pattern, inheritance rules, and four examples (alignment, spacing, padding, partial values)
  • global-styles.md: Added kit storage model, globals/<type>?id=<id> format, __globals__ JSON key structure, and four examples (single/mixed globals, custom IDs)

3. How It Works

Three parallel patterns:

  • Repeaters: Array of objects with auto-generated _id, field names as keys, supports nesting of complex controls
  • Responsive: Base key + device suffixes (_tablet, _mobile, custom breakpoints), fallback to desktop at runtime
  • Globals: Reference strings in __globals__ object keyed by control name; actual values resolved from kit post at render time

4. Risks

None—pure documentation. Internal consistency across examples is solid; edge cases (partial responsive, custom breakpoint IDs, mixed global+custom values) are covered.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

@rami-elementor rami-elementor merged commit 77f374b into master May 14, 2026
11 of 12 checks passed
@rami-elementor rami-elementor deleted the data-structure branch May 14, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants