1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
sap.ui.jsview("sapui5_components.main_view", { /** Specifies the Controller belonging to this View. * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller. * @memberOf sapui5_components.main_view */ getControllerName : function() { return "sapui5_components.main_view"; }, /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed. * Since the Controller is given to this method, its event handlers can be attached right away. * @memberOf sapui5_components.main_view */ createContent : function(oController) { var oPage = new sap.m.Page({ //title: "Page1", showHeader: false, footer:[ new sap.m.Bar({ contentMiddle: [ new sap.m.Label({ text: "This! Is! Footer!!!" }) ] }) ] }); var oVBox = new sap.m.VBox({ justifyContent: "Center", alignItems: "Center", alignContent: "Center", fitContainer: true, items: [ /*new sap.m.Button({ icon: "sap-icon://account", enabled: false }),*/ new sap.m.Input({ placeholder: "Login" }), /*new sap.m.Button({ icon: "sap-icon://key", enabled: false }),*/ new sap.m.Input({ type: "Password", placeholder: "Passwod" }), new sap.m.Button({ text: "Login", type: "Emphasized", press: oController.OnNavToSecond }), ] }) oPage.addContent(oVBox); return oPage; } }); |