ValueSelector

List item displaying single selected value when not expanded, where expanding it opens a listing of all the possible values for selection. More...

Properties

Detailed Description

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
    }
}

Property Documentation

expanded : bool

This documentation is under development and is subject to change.

Specifies whether the selector is 'open' or 'closed'.


fallbackIconSource : url

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).


icon : variant

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.


iconFrame : bool

This documentation is under development and is subject to change.

Show or hide the frame around the icon


selectedIndex : int

This documentation is under development and is subject to change.

The index of the currently selected element from the values array.


text : string

This documentation is under development and is subject to change.

The text that is shown in the list item as a label.


values : variant

This documentation is under development and is subject to change.

The list of values that will be shown under the label text