From 7593e95726646c123ccc99fa2a9b3370ef13ce65 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 30 Dec 2018 17:08:54 +0100 Subject: [PATCH] last non-vue commit --- .../ActionItemCategoryHeaderProcessor.js | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 js/lib/libghettoui/settings/ActionItemCategoryHeaderProcessor.js 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