componentsoftwaredesign-project
v1.0.3
Published
<!---*-tab-width:4;indent-tabs-mode:t;truncate-lines:t;-*- vim:set ts=4 noet nowrap:--->
Downloads
7
Maintainers
Readme
The old `accordion.js` file contains only ES5, and can be used as a fallback for older platforms which lack ES module support:
~~~html
<!-- Fallback to ES5 for legacy browsers -->
<script nomodule src="src/accordion.js"></script>
<script nomodule>
"use strict";
var accordions = document.querySelectorAll(".accordion");
for(var i = 0, l = accordions.length; i < l; ++i)
new Accordion(accordions[i]);
</script>
IE8 support
For IE8-9 compatibility, install fix-ie
:
npm install fix-ie --save
bower install fix-ie --save
Options
| Name | Type | Default | Description |
|--------------------------------------------------|----------|------------------|-----------------------------------------------------------------|
| [toggleExpand] | Boolean | "false"
| Expand of the accordion
| [inputValue] | String | undefined
| Value for editable
| [toggleEditable] | Boolean | "false"
| Editable toggle