-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat(Expansion Panel): "Virtual" expansion panel #19874
Comments
This sounds like the "Lazy rendering" use case from the docs: https://material.angular.io/components/expansion/overview#lazy-rendering |
my bad, though it was as you said, but lazy renedring will keep the rendered elements after they were rendered once, instead of removing 'em if it's closed again, as a virtual scroll would |
I believe the thinking behind keeping the elements in the DOM after the first render is that you've already paid the cost for rendering the elements so keeping them for the next time it's opened is cheaper than removing and re-adding them. That sort of breaks down for virtual scrolling when you have tons of elements. |
the problem is that, in cases like the one described in my first post, when all elements have been rendered, #8287 happens |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
Feature Description
for certain use cases, an option to make expansion panel not render the items inside 'em when closed(like a virtual scroll) would be really useful
Use Case
for example, in the image i've got two expansion panels, each with 50 components inside, if i closed one, those 50 components would still be loaded in the page, unnecesarily
The text was updated successfully, but these errors were encountered: