How do I insert/remove a element at runtime in Fuse?

How do I insert/remove a element at runtime in Fuse?

In other words, I want to dynamically configure UX elements at runtime. Is there a way? (adding, removing, configuration…)

Hi!

In Fuse, you don’t manipulate view-objects directly. Fuse is declarative-first, so you only manipulate the view through data-binding. Create an Observable in JavaScript, and then bind an <Each> tag to it. This allows you to control how many instances of a particular view should be visible. You then data-bind the different properties on the element to configure it.

You can also use triggers to insert/remove things, e.g.

  <WhileTrue Value="{somedata} > 10">
        <Image ...

Ultimately, you could manipulate view-elements in Uno code, but this is not the recommended approach.