Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic support for DataContext={resource: ...} #1392

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Commits on Nov 23, 2024

  1. Basic support for DataContext={resource: ...}

    This functionality is essential for server-side
    only rendering, but this patch is only the groundwork -
    we still need to add support to Repeater and possibly other controls.
    
    The design is fairly simple - we allow resource binding
    in data context and track that this data context does
    not exist client-side (see the new ServerSideOnly property).
    Using this server-only data context is not allowed in value
    and staticCommand bindings. Note that using a value binding
    inside the resource-bound control is allowed, it just cannot
    reference `_this`. Since the context does not exist client-side,
    we then translate _parent into $data instead of $parent.
    exyi committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    604d9fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d4d8db View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9c8ce9f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    182d4a6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e0944d6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c13bbd2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c8172a2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    23c5f55 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a1342d5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    36f7055 View commit details
    Browse the repository at this point in the history