Class: CollectionFlattener

CollectionFlattener

new CollectionFlattener(options)

base/CollectionFlattener.js, line 38

构造Collection扁平化容器

Name Type Default Description
options Object {} 可选

构造参数

Name Type Description
getCollections function 可选

获取子集合的函数,返回Collection数组

Example

创建集合扁平化容器

// ES5引入方式
const { CollectionFlattener } = zondy

// ES6引入方式
import { CollectionFlattener } from '@mapgis/webclient-common'
const flattener = new CollectionFlattener()