zesik / react-splitter-layout

A simple split layout for React and modern browsers. https://zesik.com/react-splitter-layout
MIT License
427 stars 131 forks source link

Reading update of size through props #17

Open vishesh774 opened 6 years ago

vishesh774 commented 6 years ago

I am trying to update the size of the primary and secondary panes after they are loaded initially. I want it to accept props and change accordingly.

I have written code in my local machine. I think i can commit to a new branch in here. Please let me know if i can contribute same. Thanks

zesik commented 6 years ago

Hi,

Could you let me know how you did this? Are you using getDerivedStateFromProps to get new secondaryPaneSize states?

Thanks

TroySchmidt commented 5 years ago

I would really love to see that ability. Or possibly expose it thru context so we can use hooks to get at it and manipulate it. A use case would be a button of a component that would toggle a side bar between normal size and "max width".

MatthieuCoelho commented 5 years ago

Any news regarding the PR ?

Minoli commented 4 years ago

Any update on this?