Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8908

HTML Templating with Handlebars Conditionals

$
0
0

Hi all,

 

Is it somehow possible to use Handlebars Conditionals with SAPUI5 HTML Templating? My problem is that I would like to define a Block in view which would be shown only if a value in a JSONModel is true.

 

I cannot find any mention about Handlebars Block Helpers in the SAPUI5 documentation besides "#each" helper. I tried to use "#if" similarly but it doesn't work.

 

Here's a jsbin:

 

http://jsbin.com/puzelicopoye/1/edit

 

And here's a link to Handlebars documentation about Block helpers:

 

http://handlebarsjs.com/block_helpers.html

 

Regards,

Kimmo


Viewing all articles
Browse latest Browse all 8908

Trending Articles



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