18. Use the list as a dropdown
Dropdown View gives the same list a collapsed header. This suits a destination selector, category filter or compact choice control. The data source and selection rules remain the same.
1. Add a List Box with ID route_list. Make it 525 pixels wide and 52 high.
2. Enable Dropdown View. Set Dropdown List Height to 190.
3. Use a String variable selected_route as Selected Item Variable.
4. In Text & Content, enter Choose a destination... in the dropdown placeholder text field.
5. Place the element high enough that its expanded list fits below it.
Figure 26. Dropdown View and Dropdown List Height. The source here is the route_rows Array described in Chapter 19.
The element’s own Height controls the collapsed button. Dropdown List Height controls the list below it when open. Increasing one does not replace the other.
