Created
July 17, 2017 09:26
-
-
Save scorredoira/0e92d1466e8da35f628bed020463cece to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace crm { | |
window.addEventListener("load", () => { | |
initRoutes(); | |
}); | |
function initRoutes() { | |
web.addRoute("/crm/clients", clients) | |
} | |
function clients(data: any) { | |
views.selectMenuItem("clients") | |
views.setView(new crud.ListView({ | |
title: t("@@Clientes"), | |
allowNew: true, | |
allowEdit: true, | |
loadURL: "/crm/clients.json", | |
saveURL: "/crm/saveClient.json" | |
})); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment