awv3
Version:
⚡ AWV3 embedded CAD
19 lines (16 loc) • 545 B
JavaScript
import Element from '../element';
export default class Button 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.Button, icon: '', format: Button.Format.Default, value: false, ...options });
}
static Format = {
Default: 'Default',
Toggle: 'Toggle',
Upload: 'Upload',
Color: 'Color',
Menu: 'Menu'
};
}