]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add explanation of data-options to JavaScript overview docs page, closes #7793
authorGeoff Kimball <geoff@zurb.com>
Wed, 6 Jan 2016 21:47:37 +0000 (13:47 -0800)
committerGeoff Kimball <geoff@zurb.com>
Wed, 6 Jan 2016 21:47:37 +0000 (13:47 -0800)
docs/pages/javascript.md

index b1b8178cc07ad71c5722bedc3a8d6471d769f6dc..c9408af886d9bb1963b3c49726f22bbef1bd31d3 100644 (file)
@@ -82,6 +82,12 @@ In the HTML, each setting can be defined as an individual data attribute. Note t
 <div data-accordion data-slide-speed="500" data-multi-expand="true"></div>
 ```
 
+Data options can also be set in bulk on one attribute, `data-options`. Options are written with the format `key: value`, with a semicolon separating each option. The above example can be written using `data-options` like so:
+
+```html
+<div data-accordion data-options="slideSpeed: 500; multiExpand: true"></div>
+```
+
 ---
 
 ## Adding Plugins After Page Load