Local Storage Variables in SAP UI5

You can define your global variables on index.html. Also you can set value like below: window.localStorage.setItem(“variable_name”,”variable_value”) To get variable value you can use the code below: var oVariable = sap.ui.getCore().byId(“oVariable”); oVariable.setValue(window.localStorage.getItem(“variable_name”));  

How to Define Button – SAP UI5

      Click here to get Icon Names var oButton = new sap.m.Button({ icon : “sap-icon://add”, width : “100%”, text : “Button Text ” , press : [oController.ButtonEvent,oController] });