SingleControl QML Type

A list item containing a single control More...

Import Statement: import Ubuntu.Components.ListItems 1.0
Inherits:

Empty

Properties

Detailed Description

Note: The component is deprecated. Use ListItem component instead.

Examples:

import Ubuntu.Components 1.2
import Ubuntu.Components.ListItems 1.0 as ListItem
Column {
    ListItem.SingleControl {
        control: Button {
            anchors {
                margins: units.gu(1)
                fill: parent
            }
            text: "Large button"
        }
    }
}

Property Documentation

control : Item

The control of this SingleControl list item. The control will automatically be re-parented to, and centered in, this list item.