API Documentation
Documentation for developing SailfishOS applicationsDetailItem QML Type
Styled display of a label and an associated value More...
Import Statement: | import Sailfish.Silica 1.0 |
Properties
- label : string
- leftMargin : real
- rightMargin : real
- value : string
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 margins between the left and right edges of the item and its contents. The default value is Theme.horizontalPageMargin.
The margins between the left and right edges of the item and its contents. The default value is Theme.horizontalPageMargin.
The second piece of displayed text, showing the value of the detail.
See also label.