API Documentation

Documentation for developing SailfishOS applications

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

label : string

The first piece of displayed text, describing the detail.


leftMargin : real

The margins between the left and right edges of the item and its contents. The default value is Theme.horizontalPageMargin.


rightMargin : real

The margins between the left and right edges of the item and its contents. The default value is Theme.horizontalPageMargin.


value : string

The second piece of displayed text, showing the value of the detail.

See also label.


We use cookies to improve your user experience and to help us to develop our services. By continuing to browse the site, you approve of our use of cookies.