Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.04 KB

File metadata and controls

28 lines (18 loc) · 1.04 KB

< Views and HTML Animation

Views and HTML Animation : Plan Your Controllers.

When ever you create an OpsTool, there is a default Controller created that is named after your tool.

[project]/assets/opstools/[ToolName]/controllers/[ToolName].js

This is the main controller for the Tool, and it's job is to attach and coordinate any of the Tool's sub controllers.

After looking at the mockup file, we decide there are two additional controllers we need to make: List and Detail Controllers

create the controllers:
# from [project] directory
$ appdev controllerUI opstools/ExampleTool List
$ appdev controllerUI opstools/ExampleTool Detail

When this completes you should now have:

  • [project]/assets/opstools/ExampleTool/controllers/List.js
  • [project]/assets/opstools/ExampleTool/controllers/Details.js

< Views and HTML Animation
Next: Attach your Program Controller >