MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / makeHeaderLink

Function makeHeaderLink

scripts/table_addSortTable.js:35–40  ·  view source on GitHub ↗
(tableNo, colNo, ord)

Source from the content-addressed store, hash-verified

33 }
34
35 function makeHeaderLink(tableNo, colNo, ord) {
36 let button = document.createElement("button");
37 button.onclick = () => sortTable(tableNo, colNo, ord);
38 button.innerText = ord > 0 ? "a" : "d";
39 return button;
40 }
41
42 function makeHeader(tableNo, nCols) {
43 var header, headerCell, i;

Callers 1

makeHeaderFunction · 0.85

Calls 1

sortTableFunction · 0.85

Tested by

no test coverage detected