class ActionItemCategoryHeaderProcessor extends BaseElement {
static addCategoryName(table, categoryName) {
var row = document.createElement('tr');
row.innerHTML = `
${categoryName} | `;
table.appendChild(row);
}
static addTableHeader(table) {
var topRow = document.createElement('tr');
var bottomRow = document.createElement('tr');
topRow.innerHTML = `
Command |
Displayed name |
Shortcut |
Mouse action? |
Show in popup |
[reserved for future use] |
`;
bottomRow.innerHTML = `
`;
topRow.classList.add("action-item-table-header");
bottomRow.classList.add(["action-item-table-header", "action-item-table-header-small"])
table.appendChild(topRow);
table.appendChild(bottomRow);
}
}