infiniteDropdown
infinite dropdown
USAGE
Installation
USE npm: npm install --save infinitedropdown
Usage
simply include
<script src="/path/to/infinitedropdown.min.js">
or
if you use webpack or module loaders:
// CommonJSvar idd = ; // ES2015;
config:
var idd =
html:
required data structure
data structure like hash(structure is simple and clear)
const data = 1: 10: '水果' 20: '蔬菜' 10: 100: '苹果' 101: '香蕉' 20: 200: '土豆' 201: '大蒜' 202: '茄子' 100: 1000: '苹果一种' 1001: '苹果两种' 101: 1010: '香蕉1' 1011: '香蕉2'