You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature in detail (code, mocks, or screenshots encouraged)
Currently, you can set a defaultSize to determine the height on load, but you can't default to having a panel be collapsed on load. I wanted to set the defaultSize for when the panel is in its expanded state but have the panel start off on load. I couldn't find any current way to do this with props.
Here's what I ended up doing to solve it:
functiontogglePane(){if(myPane.isCollapsed()){myPane.expand();// We can't set a default size of 50 and also have it be collapsed on load// so the first time we expand it, we set it to 50constcurrentSize=myPane.getSize();if(currentSize===0){myPane.resize(50);}}else{myPane.collapse();}}
It would be helpful if there were a collapse prop on the component so I could do something like this instead:
Describe the feature in detail (code, mocks, or screenshots encouraged)
Currently, you can set a
defaultSize
to determine the height on load, but you can't default to having a panel be collapsed on load. I wanted to set thedefaultSize
for when the panel is in its expanded state but have the panel start off on load. I couldn't find any current way to do this with props.Here's what I ended up doing to solve it:
It would be helpful if there were a
collapse
prop on the component so I could do something like this instead:What type of pull request would this be?
New feature
The text was updated successfully, but these errors were encountered: