Comments (9)
Hi
You have to trigger a click on the 'pure-toggle-label' or 'pure-toggle' after routing to the new page or when you click on a menu item. This will hide the menu and remove the overlay.
from pure-drawer.
Where you able to sort it out?
from pure-drawer.
I'm sorry I missed your reply, Mac81. What do mean trigger a click? How?
from pure-drawer.
F.ex. with jQuery
$('.pure-toggle').trigger('click');
or native js
document.getElementsByClassName('.pure-toggle').click();
from pure-drawer.
Thank you! That solved it. :)
from pure-drawer.
Hi,
I'm having the same issue-- where do you put the trigger click, exactly? Is it just in a script at the end of the page? Sorry, I'm a noob!!
from pure-drawer.
Are you using Angular as well? If so; just use ng-click to call a function in the controller. Put the code inside the function. :)
from pure-drawer.
Sorry- I should have mentioned. I am not using Angular!
“Above all, do not lose your desire to walk: every day I walk myself into a
state of well-being and walk away from every illness; I have walked myself
into my best thoughts.” - Søren Kierkegaard
On Thu, Jul 16, 2015 at 1:57 PM, nypraise [email protected] wrote:
Are you using Angular as well? If so; just use ng-click to call a function
in the controller. Put the code inside the function. :)—
Reply to this email directly or view it on GitHub
#17 (comment).
from pure-drawer.
Just before the body tag should work fine. If you have a custom external script already it's best to put it there. If not either add a js file or just add it inline within a script tag.
If your looking to learn some javascript I would suggest looking at some free courses over at codeschool.com or http://code.tutsplus.com/categories/javascript
from pure-drawer.
Related Issues (20)
- Do not put node_modules in repo HOT 2
- Missing closing tag in your index.html page
- Menu breaks parallax images HOT 5
- preventing the "pure-pusher-container" contents to scroll up when clicked on the menu HOT 2
- managing open / close state when main page is clicked to close the menu HOT 1
- strategy to cut down on the large CSS file HOT 1
- Operator issue HOT 2
- Touch laggy on Chrome
- license please HOT 1
- $toggle-checked-color doesn't work HOT 2
- Slide/Push HOT 1
- If drawer is placed in iFrame, opening and closing the drawer scrolls the parent frame to the top
- Dist directory contains duplicate scss files HOT 1
- SCSS breakpoint error HOT 2
- menus are hiding in landscape mode as push-drawer isn't scrollable HOT 2
- Resize Icon? HOT 5
- Custom toggle? HOT 4
- Publish on NPM HOT 1
- Open Drawer with javascript?
- FEAT: Incremental Swiping Demo For Mobile (Doc Request)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pure-drawer.