How to bind class with dynamic class name?

Hi,

Suppose I have the following code:

<span class="flag-icon flag-icon-us"></span>

That should give a US flag icon. But, I want to dynamically compute the class name, like so:

<span class="flag-icon flag-icon-{{data.country}}"></span>

Is this possible with Wappler’s framework?

Community Page
Last updated: