awv3
Version:
⚡ AWV3 embedded CAD
19 lines (16 loc) • 547 B
JavaScript
import Element from '../element';
export default class Group extends Element {
constructor(plugin, options = {}) {
if (options.children) {
options.children = options.children.map(item => item instanceof Element ? item.id : item);
}
super(plugin, { type: Element.Type.Group, format: Group.Format.Default, limit: undefined, ...options });
}
static Format = {
Default: 'Default',
Buttons: 'Buttons',
Rows: 'Rows',
Table: 'Table',
Collapse: 'Collapse'
};
}