/** * @category MyEic * @subcategory Libraries * @extends View */ class EICDialogContent extends View { icon = null; actions = [ { label: 'Cancel', onclick: this.cancel.bind(this), severity: 'secondary' }, { label: 'OK', onclick: this.accept.bind(this), severity: 'primary' } ] constructor(options) { super(options); this.options = options || {}; window.addEventListener('resize', this.DOMContentResized.bind(this)); } DOMContentLoaded(options) { } get buttons() { let list = []; for(let descriptor of this.actions) { if(!descriptor.button) { let button = new Button(ui.create(`