Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3530

Re: When to use curly bracket in data binding?

$
0
0

bindProperty does not need curly brackets.

 

In a object, does not need curly bracket e.g.

new sap.ui.commons.Label({    text: {       path: "name",       formatter: function(n) {           return name : name.toUpperCase() : name;       }    }
}),

 

In a string need curly bracket. e.g.

new sap.ui.commons.Label({    text: "{name}"
}),

 

Did i cover all?

 

Thanks

-D


Viewing all articles
Browse latest Browse all 3530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>