List item displaying single selected value when not expanded, where expanding it opens a listing of all the possible values for selection. More...
This component is under heavy development.
Examples:
import Ubuntu.Components.ListItems 0.1 as ListItem Column { width: 250 ListItem.ValueSelector { text: "Standard" values: ["Value 1", "Value 2", "Value 3", "Value 4"] } ListItem.ValueSelector { text: "Disabled" values: ["Value 1", "Value 2", "Value 3", "Value 4"] enabled: false } ListItem.ValueSelector { text: "Expanded" values: ["Value 1", "Value 2", "Value 3", "Value 4"] expanded: true } ListItem.ValueSelector { text: "Icon" icon: Qt.resolvedUrl("icon.png") values: ["Value 1", "Value 2", "Value 3", "Value 4"] selectedIndex: 2 } }
This documentation is under development and is subject to change.
Specifies whether the selector is 'open' or 'closed'.
This documentation is under development and is subject to change.
The location of the icon to show in the list item if iconSource failed to load (optional).
This documentation is under development and is subject to change.
The location of the icon to show in the list item (optional), or an Item that is shown on the left side inside the list item. The icon will automatically be anchored to the left side of the list item, and if its height is undefined, to the top and bottom of the list item.
This documentation is under development and is subject to change.
Show or hide the frame around the icon
This documentation is under development and is subject to change.
The index of the currently selected element from the values array.
This documentation is under development and is subject to change.
The text that is shown in the list item as a label.
This documentation is under development and is subject to change.
The list of values that will be shown under the label text