/** * QCObjects Framework SDK * ________________ * * Author: Jean Machuca * * Cross Browser Javascript Framework for MVC Patterns * QCObjects is licensed under the MIT License * [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt) * * Copyright (C) 2015 Jean Machuca, * * Everyone is permitted to copy and distribute verbatim copies of this * license document, but changing it is not allowed. */ "use strict"; import { Package, Component } from "qcobjects"; export class GridItemComponent extends Component { name = "grid-item"; shadowed = true; tplsource = "inline"; template = `

{{description}}

`; cached = false; } export class GridComponent extends Component { name = "grid"; cached = false; view = null; shadowed = true; rows = 3; cols = 3; templateURI = ""; data = {}; tplsource = "inline"; template = "

Loading...

"; body: any; constructor(o: any) { super(o); this.body.setAttribute("controllerClass", "DataGridController"); const subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null) ? (this.body.getAttribute("subcomponentClass")) : ("GridItemComponent"); this.body.setAttribute("subcomponentClass", subcomponentClass as string); } } Package("org.qcobjects.components.grid", [ GridComponent, GridItemComponent ]);