✅ Solved: Getting list item by index
Hey! Following the announcement of artboard properties, we attempted to try using inside the lists. A “simple” case where an Artboard List renders all populated artboard works just fine, so we decided to go one level deeper, and that’s where we got stuck 🙂
Is it possible to create a converter (or something else) to turn a number into a list item sitting under that number? An example we are trying to do would be as follows:
We set up a view model containing “Artboard” property denoting an artboard to be presented and some extra data utilized by that artboard (e.g. “Screen Title”)
We set up a list of the above items in the root view model
We set up an integer called “Current Index” in the root view model
We now want to render a single nested artboard using the “Current Index” and the list of items so that we can flick through list elements by changing the index and having different artboards be rendered in there.
Is it possible with the data bindings at all? Maybe there is another way to achieve this?