Contents

Subtitled

List item displaying a second string under the main label. This component is under heavy development. More...

Properties

Detailed Description

Examples:

import Ubuntu.Components.ListItems 0.1 as ListItem
Column {
    ListItem.Subtitled {
        text: "Idle"
        subText: "Secondary label"
    }
    ListItem.Subtitled {
        text: "Disabled"
        enabled: false
        subText: "Secondary label"
    }
    ListItem.Subtitled {
        text: "Selected"
        selected: true
        subText: "Secondary label"
    }
    ListItem.Subtitled {
        text: "Progression"
        subText: "Secondary label"
        progression: true
    }
    ListItem.Subtitled {
        text: "Icon"
        subText: "Secondary label"
        icon: Qt.resolvedUrl("icon.png")
    }
    ListItem.Subtitled {
        text: "Multiple lines"
        subText: "This is a multi-line subText.\nUp to 5 lines are supported."
    }
    ListItem.Subtitled {
        text: "Multiple lines"
        subText: "It also works well with icons and progression."
        icon: Qt.resolvedUrl("icon.png")
        progression: true
    }
}

Property Documentation

subText : string

This documentation is under development and is subject to change.

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


text : string

This documentation is under development and is subject to change.

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