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...
Inherits Empty
Properties
- control : Item
- fallbackIconSource : url
- icon : variant
- iconFrame : bool
- progression : bool (preliminary)
Detailed Description
See also the Design Guidelines on List Items.
Examples:
import Ubuntu.Components 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
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.
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.
Show or hide the progression symbol.