Remove specific imports and specific functionality
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import {isIsoDateWithMs, padIsoMilliseconds} from "./util.js";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @template R A type that the shape of a row should be. E.g.
|
* @template R A type that the shape of a row should be. E.g.
|
||||||
* ```
|
* ```
|
||||||
@@ -139,17 +137,7 @@ export abstract class Table<R extends Object> {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
const strValue = String(value)
|
const strValue = String(value)
|
||||||
if (isIsoDateWithMs(strValue))
|
|
||||||
{
|
|
||||||
const strValueDateTime = padIsoMilliseconds(strValue);
|
|
||||||
cell.classList.add("table-cell-datetime")
|
|
||||||
const date = strValueDateTime.split("T")[0]
|
|
||||||
const time = strValueDateTime.split("T")[1]
|
|
||||||
cellValue = `${date} ${time}`;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
cellValue = value != null ? String(value) : "";
|
cellValue = value != null ? String(value) : "";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
cell.textContent = cellValue;
|
cell.textContent = cellValue;
|
||||||
row.append(cell);
|
row.append(cell);
|
||||||
|
|||||||
Reference in New Issue
Block a user