blob: 910aa52b400c93ccb0760e4b80a3e7f919cb6080 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import h from "../../html";
import ntvGrid from "../grid";
import ntvToolbar from "../toolbar";
import "./index.css";
class NotiveAppElement extends HTMLElement {
connectedCallback() {
this.append(
ntvToolbar(),
...window.notive.doc.grids.map((grid) => {
return ntvGrid({ gridId: grid.id });
}),
);
}
}
customElements.define("ntv-app", NotiveAppElement);
|