Ejemplo de vista personalizada

26-10-2019
``` function showConfigView(data: any) { let panel = S.create("div", "a3") S.create("div", "view_title", panel, T("@@ConfiguraciĆ³n a3")) let buttons = S.create("span", "view_header_buttons", panel) new S.Button(T("@@Guardar"), "highlighted", buttons, () => { if (!form.validate()) { return } S.postJson({ url: "/a3/saveConfig.api", data: form.getModel(), onSuccess: () => S.showFlash("success", T("@@ConfiguraciĆ³n actualizada correctamente")) }) }) let tile = new S.Tile() tile.addElement(panel) let entity = S.getEntity("a3.virtualSettings") let form = S.buildForm(entity.properties) form.render(data) panel.appendChild(form.element) let view = new admin.AdminView("padding") view.content.appendChild(tile.element) S.setView(view) } ```