class ActionItem extends BaseElement { constructor(id, action, onClick) { super(id, undefined, onClick, undefined, document.createElement('tr')); this.element.classList.add("action-list-item"); let cmd = ""; for (var c in action.cmd) { cmd += `${c > 0 ? '; ' : ''}${action.cmd[0].action} ${action.cmd[0].arg}` } this.element.innerHTML = `