Files
P42_UI/app/assets/json/tests/New-feature-todo.txt
T
2025-08-27 07:03:09 +00:00

41 lines
1.6 KiB
Plaintext

/*
Typical TODO-list for new app feature:
=> New route:
=> Delegating route in baseRoutes.json (without method)
=> Add real route(s) in the xxxController.json (section:routes)
=> New controller :
=> Create xxxController.json (minimum: routes, views to load, model to load)
=> Create xxxController.js
=> (!) make sure to have a correct "app.registerClass"(same as filename !)
=> (!) make sure the class name is unique across the universe
=> Create the methods used in the route(s) definition
=> Add this.loadWindow in the method(s)
=> second param is object of anything to pass to view, such ass model(s) (1)
=> New model :
=> Create xxxModel.js
=> (!) make sure to have a correct "app.registerClass" (same as filename !)
=> (!) make sure the class name is unique across the universe
=> New view :
=> Create xxxView.html
=> Create xxxView.js
=> (!) make sure to have a correct "app.registerClass" (same as filename !)
=> (!) make sure the class name is unique across the universe
=> Needs at least a method "DOMContentLoaded(options)"
=> probably want to use "ui.eicfy(this.el)"
=> setup all your dom & components references
=> probably want to get stuff from the controller via options.xxx
=> typical: "this.model = this.options.model" (see (1))
or: like "for(let model in options.models) this[model] = options.models[model]"
=> Make a menu entry :
=> Add an entry in "/app/assets/json/global/app-menu-map.json"
=> (!) Make sure to select the proper roles (or "*" for open-bar)
*/