javascript - OpenUI5 controls not visible -
I'm trying to get at least the examples to work, but the following screenshots are very good for my problem Describes with:
As you can see Buttons are provided, but invisible reason for some. Can you help me
This is my index.html
file:
& lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "X-UA-Compatible" content = "IE = Edges" /> & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; App 0001 & lt; / Title & gt; & Lt; Script id = "sap-ui-bootstrap" src = "https://openui5.hana.ondemand.com/resources/sap-ui-core.js" data-SAP-UI-theme = "SAP_bluecestrust" data-Sap- Ui-libs = "sap.m, sap.ui.commons, sap.ui.core, sap.ui.table" data-sapp-ui-resourceroots = '{"x4": "/ example4 / x4"}' & ' Gt; & Lt; / Script & gt; & Lt; Script & gt; // var myView = sap.ui.jsview ("x4") var myView = sap.ui.xmlview ("x4") myView.placeAt ('content'); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body class = "sapUiBody" & gt; & Lt; Div id = "content" & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
This is the view ( x4.view.xml
) according to OpenWi5
& Lt; Button Text = "Switch Split Container Orientation" /> And lt; / U: Content & gt; And lt; / U: SplitContainer & gt; & Lt; / MVC: View & gt;
and this (minimum) x4.controller.js
sap.ui.controller ("x4", {} );
The firebug error console looks clean, and this error seems browser-independent, as we look at the same behavior with IE.
Do not add visual into the Div directly, wrap it inside the app.
& lt; Script & gt; Var oApp = new sap.m.App (); Var myView = sap.ui.xmlview ("x4") oApp.addPage (myView); OApp.placeAt ('content'); & Lt; / Script & gt;
Comments
Post a Comment