javascript - Foundation for Apps, off canvas close on click off -


i'm using foundation apps, angular version, , trying use off canvas menu. works fine, opening , closing via setting links, not close when clicking off of in main content area previous versions, , example, do.

it's simple setup:

<zf-offcanvas id="menu" position="left"> <a zf-close="" class="close-button">×</a>  </zf-offcanvas> <a zf-open="menu" class="button">open off-canvas</a> 

and should done, clicking anywhere on main content (not links) not close off canvas example docs:

http://foundation.zurb.com/apps/docs/#!/off-canvas

i'm looking either solution problem, or hacked out js solution close window on clicking on "main" content.

you have add "zf-close-all" attribute body tag.

<body zf-close-all> 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -