blob: ec40754e6f2d2f8f455790fb3b74debe991f6de0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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);
|