...
Parameter | Required | Description |
---|---|---|
name | yes | Module friendly name, will be displayed above the menu items of that service (no limitations, can be changed in time example: "OMS Events module") |
code | yes | Module internal name - This will be the entry for the service in the baseUrlRepository (see below) (no spaces, all lowercase |
pages | yes | JSON array containing frontend pages data Each entity inside the array should contain the following attributes: |
pages[].name | yes | Frontend friendly name (example: "List events"), will be the name of the menu item |
pages[].code | yes | Frontend internal name (example: "applications") - This one should be the same with the AngularJS module name defined in the module |
pages[].module_link | no | relative (to your service) pathto the module controller JS file, instead you can also use the js array below |
menu_position | no | The An integer indicating the position in the left menu, if not specified defaults to the end of the list. |
css | no | JSON array containing relative (to your service) paths to css files that you want to include |
js | no | JSON array containing relative (to your service) paths to js files that you want to include |
modules | no | JSON array containing angular module names that should be added in addition to the ones from the pages array |
deps | no | JSON array with dependencies of your service. Each dependency must be installable via npm and will end up in the vendor.js and vendor.css files. You can also add an angular module to be loaded for the dependency. In case another service already registered a dependency with the same npm name, your dependency will be skipped. |
deps[].npm | yes | Name of the npm module that can be passed to npm install <name>. It is recommended to add a major version number to the npm name, so future breaking updates don't get installed while security updates and new features will be installed automatically (example "bootstrap@3") |
deps[].css | no | JSON array or string containing the css files this dependency brings |
deps[].js | no | JSON array or string containing the js files this dependency brings (example "node_modules/bootstrap/dist/js/bootstrap.js") |
deps[].module | no | Name of the angular module this dependency brings. Make sure this is correct as otherwise it will break the frontend. |
...