Remove/don't render conditional region tag in DOM

Is this even possible @patrick?

Is it possible to add a boolean to the conditional component so when true it doesn’t add the tag or removes it from the DOM when the condition is not met?

i.e. If condition is false do not render the empty span in the DOM.

<span class="badge badge-success" dmx-class:badge-danger="$value == false" id="bool" is="dmx-if" dmx-bind:condition="condition">{{$value}}
</span>

There was a discussion about this here. @Teodor mentioned it wasn’t possible at the time but might be in the future.

1 Like