mgn-auto-height ( Don't Need jQuery )
Implement accordion function.
- Target browser : IE9+
Install
npm i mgn-auto-height -S
Or Download raw data
↓ download "mgn-auto-height.js"
Import
import mgnAutoHeight from 'mgn-auto-height';
Constructor
new mgnAutoHeight(element);
Argument | Data type | Default | Descroption |
---|---|---|---|
element | String | -(Required) | Specify target element. ex) ".j-autoheight" |
Method
Method | Argument | Descroption |
---|---|---|
SetTarget() | - | Re-adjust height. |
Demo
https://frontend-isobar-jp.github.io/mgn-auto-height/
import mgnAutoHeight from 'mgn-auto-height';
new mgnAutoHeight( ".j-autoheight" );