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

Updating content_for blocks #1104

Open
Tjorbenn opened this issue Jul 19, 2023 · 0 comments
Open

Updating content_for blocks #1104

Tjorbenn opened this issue Jul 19, 2023 · 0 comments

Comments

@Tjorbenn
Copy link

Hi guys,

I have a big table as a partial, for which I use pagination (kaminari) to split the content to different pages. Each row of the table corresponds to an offcanvas element that are rendered in the parent element via a content_for tag. When I navigate to another page via pagination the offcanvas elements are not updated, probably because they are in the parent element, which is only rendered once and not rendered when navigating to one of the pagination pages.

I have the offcanvas elements in the main application layout because I want them to use the entire size of the viewport. If I put them in the partial, they are only contained in its size. When I put them in the layout they are not updated via pagination. Any ideas how I can get them updated when I switch pages? Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant