Alessandro Marcolini
06/24/2023, 1:09 AMNick
06/24/2023, 1:29 AMItemVisualizer
to the Dropdown
? or just giving it a list of data? Dropdown
uses an ItemVisualizer
to render the data it holds. the default is to use one that creates a Label
with the toString
value for each item.
so you’ll need to include a behavior to render those labels if you’re using the default. add basicLabelBehavior()
from the Themes
library to your app module list if you are using the default.
otherwise you’ll need to make sure any custom Views used to visualize items are rendering.Nick
06/24/2023, 1:31 AMAlessandro Marcolini
06/24/2023, 1:52 AMbasicLabelBehavior()
is what I was looking for. That fixed the problem.Alessandro Marcolini
06/24/2023, 1:53 AMItemVisualizer
?
edit: I found itAlessandro Marcolini
06/24/2023, 2:04 AMItemVisualizer
work?Nick
06/24/2023, 2:37 AMList
passes the item’s index and selection state. but you can still use a visualizer with List
that doesn’t care about these values. this is how StringVisualizer works and what let’s it be used for a variety of controls.