Skip to content

Examples on how to affect the Layout rendering from Body component #11682

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

Closed
RichiCoder1 opened this issue Mar 26, 2019 — with docs.microsoft.com · 6 comments
Closed
Labels
Blazor Pri1 Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

Copy link

It's not clear if it's possible to pass data from the wrapped component to the Layout ala https://docs.microsoft.com/en-us/aspnet/web-pages/overview/ui-layouts-and-themes/3-creating-a-consistent-look#passing-data-to-layout-pages, and if so how. Clarification would be great


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added the Source - Docs.ms Docs Customer feedback via GitHub Issue label Mar 26, 2019
@guardrex
Copy link
Collaborator

Might be a dup or related to #11243.

@guardrex guardrex self-assigned this Mar 26, 2019
@guardrex guardrex added this to the Backlog milestone Mar 26, 2019
@guardrex
Copy link
Collaborator

guardrex commented Apr 2, 2019

I'll be working on #11243 tomorrow (Wednesday, 4/3). @RichiCoder1, I'm going to move this to a comment on that issue as a reminder to test the EventCallback/chained binding bits with a layout to confirm it works. Even if it doesn't work as expected (and I doubt that will be the case), I'll note that it doesn't work with layouts in the PR tomorrow. Thanks for opening this ... you can track it on #11243.

@guardrex guardrex closed this as completed Apr 2, 2019
@guardrex guardrex removed the DR label Apr 2, 2019
@guardrex guardrex removed their assignment Apr 2, 2019
@guardrex guardrex removed this from the Backlog milestone Apr 2, 2019
@guardrex guardrex self-assigned this Apr 12, 2019
@guardrex guardrex added this to the 2019 Q2 ends June 30 milestone Apr 12, 2019
@guardrex
Copy link
Collaborator

We discussed this: We have coverage enhancements to make for this scenario: A useful approach is using a service (DI) to communicate across the component-layer barrier. We'll document that approach.

@guardrex
Copy link
Collaborator

@RichiCoder1 Engineering is going to address it formally. dotnet/aspnetcore#10131

@guardrex guardrex removed their assignment May 14, 2019
@RichiCoder1
Copy link
Author

Sounds good! The referenced issue is basically exactly what I was looking for.

@guardrex
Copy link
Collaborator

@RichiCoder1 Yes, was happy to hear from DR that they're working on a framework scenario for it. At least in the short-term until they get there (this preview) , the approach offered by @sven5 is pretty sweet. That should at least tide everyone over. We'll get the bits that they build into the docs ASAP after release.

@Rick-Anderson Rick-Anderson moved this to Done in Blazor.Docs Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blazor Pri1 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants