Ejemplo básico de vista de detalle y listado

24-10-2019
Listado: ``` S.addRoute("/admin/crm/client", () => { let grid = new admin.EntityGrid("crm.client", showCheckboxes: true, showTitle: true, showQuicksearch: true, showSearch: true, showDetailPage: true }) grid.refresh() let view = new admin.AdminView("padding") let tile = new S.Tile() view.content.appendChild(tile.element) tile.element.appendChild(grid.element) S.setView(view) }) ``` Detalle: ``` S.addRoute("/admin/crm/client/:id", () => { let detail = new admin.EntityDetail("crm.client") detail.load(args.id) let view = new admin.AdminView("padding") let tile = new S.Tile() view.content.appendChild(tile.element) tile.element.appendChild(detail.element) S.setView(view) }) ```