From a4dd74d4693607bc1e44cb64ecff5f41e3196f25 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Mon, 23 Nov 2015 15:05:43 -0800 Subject: [PATCH] In JavaScript docs, correct example data attribute, and remove references to data-options for now, closes #7120 --- docs/pages/javascript.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/pages/javascript.md b/docs/pages/javascript.md index ca2c4c875..7cc6dbb26 100644 --- a/docs/pages/javascript.md +++ b/docs/pages/javascript.md @@ -75,16 +75,10 @@ Foundation.Accordion.defaults.multiExpand = true; An individual instance of a plugin can also have different settings. These can be set in the HTML or in JavaScript. -In the HTML, each setting can be defined as an individual data attribute. +In the HTML, each setting can be defined as an individual data attribute. Note that camelCased options are converted to hyphenated words. In the below example, `multiExpand` becomes `data-multi-expand`. ```html -
-``` - -If that's too many attributes for you, they can be combined into one called `data-options`. Write the options as JavaScript-style key-value pairs, separated by semicolons. - -```html -
+
``` --- -- 2.47.2