Contents
How do I link my controller to my module?
So now any call in the menu system to Link::getAdminLink (‘MyModuleDemoController’)’ will return your controller url your-module/demo But since the MyModuleDemoController class actually doesn’t exist, the automatic tab registration based on the $tabs property won’t work. So you need to insert your tab manually during your module installation:
If you want to add a link to your ModuleAdminControllers in the back office sidebar, this guide is for you. In order to register new links, open your main module class. We will now use a property called $tabs, storing an array of link details. Each of them contains a class (= link) to add in the side menu.
How to add custom tabs with fields from standard?
As in the previous blogs, we will continue to use the demo Airline (SCARR) data model delivered by SAP. For standard project type ‘Development Project’, we will add a new tab containing information about the Aircraft (like Characteristics) as seen in the following screenshot:
How are controller tabs hidden in a module?
All the controllers present in controllers/admin in your module are automatically added as hidden Tabs (if no visible Tab exists). When you disable a module, all its related Tabs will be automatically hidden from the Back Office menu. Tabs are kept in database with their enabled field is set to false.
How does the block UI module in AngularJS work?
By default the module will block the user interface on each pending request made from the browser. This behaviour can be modified in the configuration. It’s also possible to do the blocking manually. The blockUI module exposes a service by the same name. Access to the service is gained by injecting it into your controller or directive:
When does the blockui module start a block?
By default the BlockUI module will start a block whenever the Angular $http service has an pending request. If you don’t want this behaviour and want to do all the blocking manually you can change this value to false.