json-to-dom-renderers is the high-performance JSON-to-JSON state transformation engine.
It turns column schemas and raw business data into declarative element specifications compiled at native speed by json-to-dom.
This is the confirmed, tested URL hosted on GitHub Pages ready to use in your applications right now:
import { Table, Form, DataList, createDataProvider }
from "https://keshavsoft.github.io/json-to-dom-renderers/dist/v14/min.js";
> window.ks["json-to-dom-renderers"].version
< "v14.0.0"
<script type="module"
src="https://keshavsoft.github.io/json-to-dom-renderers/dist/v14/min.js">
</script>
import { Table } from "https://keshavsoft.github.io/json-to-dom-renderers/dist/v14/min.js";
// Instantiate with plain JSON columns and data
const table = new Table({
inColumns: [
{ key: "item", label: "Product Name", type: "string" },
{ key: "qty", label: "Qty", type: "number", align: "right" },
{ key: "rate", label: "Rate", type: "number", align: "right" }
],
inData: [
{ item: "Apples", qty: 10, rate: 50 },
{ item: "Oranges", qty: 25, rate: 30 }
],
inConfig: { serial: true },
inTargetContainerId: "table-container"
});
// Mount to DOM
table.render();