Contents

Standard

The standard list item class. It shows a basic list item with a label (text), and optionally an icon, a progression arrow, and it can have an embedded Item (control) that can be used for including Buttons, Switches etc. inside the list item. More...

Properties

Detailed Description

Examples:

import UbuntuComponents 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
Column {
    ListItem.Standard {
        text: "Selectable standard list item"
        selected: false
        onClicked: selected = !selected
       }
    ListItem.Standard {
        text: "List item with icon"
        icon: Qt.resolvedUrl("icon.png")
    }
    ListItem.Standard {
        text: "With a progression arrow"
        progression: true
    }
    ListItem.Standard {
        text: "Control"
        control: Button {
            text: "Click me"
            width: units.gu(19)
            onClicked: print("Clicked")
        }
        progression: true
    }
}

This component is under heavy development.

Property Documentation

control : Item

This documentation is under development and is subject to change.

An optional control that is displayed inside the list item. The width of the control must be specified in order to determine the layout of the list item.

The mouseArea of the control will be set to the full Standard list item if there is no progression, or only the part left of the split, if there is a progression.


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


progression : bool

This documentation is under development and is subject to change.

Show or hide the progression symbol.


text : string

This documentation is under development and is subject to change.

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