JQuery splitter switching orientation

JQuery splitter switching orientation

Hi 
I am using jquery splitter plugin in my project - https://plugins.jquery.com/splitter - version 0.14.0. How do I implement switching of splitter orientation from horizontal to vertical dynamically based on button click? Is there a sample implementation available ? Appreciate your help.

Thanks
Srikanth