Published
Edited
Jun 4, 2020
Insert cell
md`# @hpcc-js/dgrid`
Insert cell
columns = ["Hello", "Welcome"]
Insert cell
data = [
["aaa", 42, {some:"payload"}],
["bbb", 43, {some:"payload2"}]
];
Insert cell
viewof table = {
const div = html`<div style="height:640px"></div>`;
div.value = {};
yield div;
new hpccGrid.Table()
.target(div)
.columns(columns)
.data(data)
.on("click", (row, col, sel) => {
div.value = sel ? row : {};
div.dispatchEvent(new CustomEvent("input"));
})
.lazyRender();
}
Insert cell
Insert cell
hpccGrid = require("@hpcc-js/dgrid");
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more