cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Javascript: Please explain notation: ({ bracket - curly bracket

0 Kudos

Hi all,

could anybody please explain the notation bracket followed by curly bracket.

When do we have to use it?

Example - in second line : new sap.m.Image({

         sap.ui.getCore().attachInit(function () {
         	 var oImage = new sap.m.Image({
             	src: "img/UI5_logo.png",
             	decorative: false,
             	alt: "SAPUI5 Logo"
             }).placeAt("content");

Thanks, regards

Mario

View Entire Topic

Hi all,

is this a so called "object literal"

See https://www.dyn-web.com/tutorials/object-literal/

Thanks, regards

Mario