cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to pass a string into a UI5 XML formatter function?

super_yan
Advisor
Advisor
0 Kudos

When I write a UI5 XML element, I use format function to set its visibility. For example:

<Title text="{
  parts:[
    'label1'					 
    {path:'color'},
  ], 
  formatter: '.formatter.getVisibility'}"
/>

And I want the first parameter, in this case is "label1", is passed into formatter function as a plain string.

But actually, I find out UI5 just drill down of the binding object, it pass the value of variable bindingObject.label1 as first parameter, of course it's undefined. 

Is it possible just pass a plain string "label1" to the formatter function?

 

Accepted Solutions (1)

Accepted Solutions (1)

burakozctn
Explorer

Answers (0)