Add `forceRender` to `Collapse.Panel`
See original GitHub issueWhat problem does this feature solve?
Sometimes you need some components to be loaded even if they are not visible. There is already a forceRender
attribute in Tabs.TabPane
but the same behavior is desired for Collapse.Panel
too.
What does the proposed API look like?
forceRender
: Force rendering of content in panels, instead of lazy rendering it. Type boolean
, default false
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Collapse - Ant Design
forceRender, Forced render of content on panel, instead of lazy rendering after clicking on header, boolean ; header, Title of the panel, ReactNode...
Read more >Dynamically Open and Close antd / react Collapse Component
I want to dynamically open/close Collapse Elements independent of user interaction (to reveal a specific panel via a search result).
Read more >ReactJS UI Ant Design Collapse Component - GeeksforGeeks
forceRender : When clicking on the header, it is used to force rendering of content on panel, instead of lazy rending. header: It...
Read more >Collapse - Introduction - Lowdefy
A container with collapsible panels. The area keys are user defined, and should be listed under the panels property. Each panel also has...
Read more >Create collapsible React components with react-collapsed
Also, we need to use the getCollapseProps function to append the required props to the collapsed panel. Now, add the following CSS to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Waiting for https://github.com/react-component/collapse/pull/82 to be merged now before doing a pull request for ant-design
@yutingzhao1991 - I’ll get together a pull request for rc-collapse