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

Re: How to remove text according to binding

$
0
0

Hi Stephane,

 

You can bind to the visible property, and use formatter function to determine the visibility, i.e.


var lbl = new sap.ui.commons.Label({     text: "test",     visible: {          path: '/state',          formatter: function(o) {               return (o !== "user");          }     }
});

JS Bin - Collaborative JavaScript Debugging

 

Regards,

Jason


Viewing all articles
Browse latest Browse all 8623

Trending Articles