digicorp / propeller

Propeller - Develop more, Code less. Propeller is a front-end responsive framework based on Google's Material Design Standards & Bootstrap.
http://propeller.in
MIT License
1.13k stars 139 forks source link

Manually open and close sidebar #21

Closed GoSwiftlyIntoThisGoodNight closed 6 years ago

GoSwiftlyIntoThisGoodNight commented 7 years ago

Hello, I am currently working with Vue and have a sidebar and navbar, but they are in separate components (but are basically the same as the demos you have provided). Thus, the toggle functionality does not work. Is there a way to manually toggle the sidebar overlay? Adding and removing the requisite classes does not seem to work (I am adding and removing 'pmd-sidebar-overlay-active' to no avail).

I appreciate the help greatly

sunil-digicorp commented 7 years ago

Hello, Could you please share your code snippet with us. It will help us in providing the right solution.

GoSwiftlyIntoThisGoodNight commented 7 years ago

I was actually able to sort of fix this problem. It turns out that Vue drops jQuery when routing to a new page (thus rendering propeller useless - this seems to happen with almost all of the propeller components). I now manually add the jQuery surrounding the sidebar after every change in page. While not excellent it does work.

Unfortunately I can't provide code as it is production code.

piyush-digicorp commented 7 years ago

Hi, Sounds great. If you need any further assistance please let us know. We will be happy to help you.