MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / updateColumnNamesOutput

Function updateColumnNamesOutput

data-csv/ui.js:49–62  ·  view source on GitHub ↗
(colNames)

Source from the content-addressed store, hash-verified

47 * `colNames` argument as a list of strings.
48 */
49export function updateColumnNamesOutput(colNames) {
50 const container = columnNamesOutputContainerElement;
51 container.align = 'left';
52 while (container.firstChild) {
53 container.removeChild(container.firstChild);
54 }
55 const olList = document.createElement('ol');
56 for (const name of colNames) {
57 const item = document.createElement('li');
58 item.textContent = name;
59 olList.appendChild(item);
60 }
61 container.appendChild(olList);
62};
63
64// Updates the message in the "sample" output row.
65export function updateSampleRowMessage(message) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected