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

Multiple @Body(RenderFragment or sections) in blazor #42880

Closed
1 task done
sajjadarashhh opened this issue Jul 23, 2022 · 6 comments
Closed
1 task done

Multiple @Body(RenderFragment or sections) in blazor #42880

sajjadarashhh opened this issue Jul 23, 2022 · 6 comments
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-component-model Any feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc) ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@sajjadarashhh
Copy link

sajjadarashhh commented Jul 23, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I've search in issues for this problem and found somethings about section's that's Handled by <Title/> and...
but how can i create Blazor Layout with multiple sections some thing like this :

<div>
     @Body
</div>
<div>
     @RightSidebar
</div>

this is very important to separate layout sections from others.
in the page we have static Header and Header values , static body and right sidebar(without values) we need to give them values from component that used this layout.
how we can create layout that support this!?

Describe the solution you'd like

give us a way to make Custom Body or create a way to send RenderFragment parameters and params to Layout

Additional context

No response

@thecobblah
Copy link

Custom body a must

@TanayParikh TanayParikh added area-blazor Includes: Blazor, Razor Components feature-blazor-component-model Any feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc) labels Jul 23, 2022
@sajjadarashhh
Copy link
Author

@thecobblah we can take this Approach in current release!?

@knight1219
Copy link

Why not separate into a component and just include that component in the Layout? What is special about your RenderFragment?

 <div>
     @Body
</div>
<div>
     <RightSidebar />
</div>

@sajjadarashhh
Copy link
Author

sajjadarashhh commented Jul 24, 2022

Right Side bar must be filled by pages each page have custom right-side bar and this not good to create repetition in project.
now I don't use layout for my project.
@knight1219

@javiercn
Copy link
Member

@sajjadarashhh thanks for contacting us.

This is a dupe of #28182

@javiercn javiercn closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2022
@javiercn javiercn added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Jul 25, 2022
@ghost ghost added the Status: Resolved label Jul 25, 2022
@thecobblah
Copy link

<Title/> Open
LOVE reason of @Body
please reopen fragment is pure love

@ghost ghost locked as resolved and limited conversation to collaborators Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-component-model Any feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc) ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

5 participants