May 2019
Beginner to intermediate
548 pages
12h 39m
English
This view is relatively small and is a good example to show the logic and the notation:
<mvc:View controllerName="my.namespace.controllers.MainView" xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" displayBlock="true"> <App id="app" backgroundColor="#fff"/></mvc:View>
The top-most XML node of each view file is the View node. As for every other XML object or file, the first node must define all the namespaces used in the XML tree. In this case, there are two namespaces declared—"sap.m" for tags without a prefix, and "sap.ui.core.mvc" with mvc prefixes. The built-in XML parser resolves these names into the SAPUI5 libraries and gets the appropriate definitions of the corresponding objects. The obligatory controllerName parameter points ...
Read now
Unlock full access