Hello,
how can I archive a roller like input field, where the list of entries is fixed and the selector moves up and down? Can I modify a roller to do so, or do I need a different element like a list?
Hello,
how can I archive a roller like input field, where the list of entries is fixed and the selector moves up and down? Can I modify a roller to do so, or do I need a different element like a list?
Hi, unfortunately there’s no dedicated widget for this in SquareLine Studio, so the simplest approach is to build it as a fixed list: create a reusable ListItem component, style its Default state normally and its User1 state as the “selected” highlight, then place these items inside a parent container with a vertical (column) layout. You can either add as many ListItem children as you need manually, or generate them dynamically in code and add them to the container. The up/down stepping logic is handled in code by tracking a selected index and switching the previous item back to Default while setting the new item to User1 as you move.