DetailItem QML Type
Styled display of a label and an associated value More...
Import Statement: | import Sailfish.Silica 1.0 |
Properties
Detailed Description
DetailItem is used to show a label and its associated value. It is typically used in multiples within a Column to display information represented by a set of (label = value) pairs.
For example, the following code displays a set of battery information using multiple detail items within a column:
import QtQuick 2.2
import Sailfish.Silica 1.0
Page {
Column {
spacing: Theme.paddingMedium
DetailItem {
label: "Battery state"
value: "Charging"
}
DetailItem {
label: "Charger"
value: "Plugged in"
}
}
}
Property Documentation
The first piece of displayed text, describing the detail.
The second piece of displayed text, showing the value of the detail.
See also label.