diff --git a/js/lib/libghettoui/settings/ActionItemCategoryHeaderProcessor.js b/js/lib/libghettoui/settings/ActionItemCategoryHeaderProcessor.js new file mode 100644 index 0000000..d9fd087 --- /dev/null +++ b/js/lib/libghettoui/settings/ActionItemCategoryHeaderProcessor.js @@ -0,0 +1,35 @@ +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 = ` + Global + Site + Video + Show + Menu path + `; + + 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); + } +} \ No newline at end of file