docs(editor): global view models - #840
Open
lancesnider wants to merge 2 commits into
Open
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
lancesnider
requested review from
jeffatrive
and
a lite review from Copilot
and removed request for
a team
August 6, 2026 02:49
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Editor data-binding documentation to introduce and explain Global View Models/Instances, and to clarify how to bind to global properties in the binding UI.
Changes:
- Expands “Connecting View Model Instances to Artboards” to include Global View Model Instances as a first-class pattern.
- Updates the “Create a View Model” flow to mention global vs non-global creation paths.
- Adds a note to the binding docs describing how to select Globals when binding global properties.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| editor/data-binding/view-models.mdx | Documents global view model instances and refreshes the patterns/steps copy accordingly. |
| editor/data-binding/binding-data.mdx | Adds guidance and a visual for binding global properties via the Globals selector. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ### Instances Attached to Artboards | ||
|
|
||
| Attach a View Model Instance directly to the top-level artboard when the data should be available to the entire artboard and its children. | ||
| View model instances can be attached to a specific artboard or nested component. This is useful when only that artboard and its children needs access to that data. |
| </UseCase> | ||
|
|
||
| ### Nested Component Instances | ||
| ### Instances as nested properties |
| <Steps> | ||
| <Step title="Add a View Model"> | ||
| In the Data panel Click the `+` icon and select **View Model**. | ||
| In the Data panel Click the `+` icon and select **Normal View Model** or [Global View Model](#global-view-model-instances). |
|
|
||
| <Note> | ||
| When binding global properties, select the **Globals** icon. | ||
|  |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.