Skip to Content
0
Sep 01, 2023 at 02:57 AM

Is UI5 XML support conditional rendering?

59 Views Last edit Sep 01, 2023 at 03:14 AM 3 rev

I want to know, is it supported in UI5 XML that if a condition is not met, a control (for example: a Button) is not exist, not just be hidden?

In pseudo code:

var showButton = false;
<Button visible={showButton}> // This is not what I want, the button is only hidden

<if showButton === true>
   <Button />
</if>
<else></else> // This is something I want, if showButton is false, the button is not exist.