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 = ` ${cmd} ${action.label ? action.label : ""} ${action.parsedShortcut ? action.parsedShortcut : ""}
${action.ui_path ? action.ui_path : ""} `; } }