FormGridContainer QML Type
This component render a grid of small cards. More...
| Import Statement: | import org.kde.kirigamiaddons.formcard |
| Inherits: |
Properties
- bottomPadding : real
- cardWidthRestricted : bool
- delegates : list<Item>
- horizontalPadding : real
- leftPadding : real
- maximumWidth : real
- padding : real
- rightPadding : real
- topPadding : real
- verticalPadding : real
Detailed Description
This is used to display multiple information in a FormCard.FormLayout without taking too much vertical space.
Form delegates can also be placed directly inside the container. In this mode, delegates are displayed in a two-column grid, each with its own card background.
import org.kde.kirigamiaddons.formcard as FormCard
FormCard.FormGridContainer {
id: container
Layout.topMargin: Kirigami.Units.largeSpacing
Layout.fillWidth: true
infoCards: [
FormCard.FormGridContainer.InfoCard {
title: "42"
subtitle: i18nc("@info:Number of Posts", "Posts")
},
FormCard.FormGridContainer.InfoCard {
title: "42"
subtitle: i18nc("@info:Number of followers.", "Followers")
}
]
}
import org.kde.kirigamiaddons.formcard as FormCard
FormCard.FormGridContainer {
FormCard.FormTextDelegate {
text: "Name"
}
FormCard.FormSwitchDelegate {
text: "Enable notifications"
}
}
Property Documentation
bottomPadding : real [default: 0]
Padding property used around the content edges.
cardWidthRestricted : bool [read-only]
This property holds whether the card's width is being restricted.
delegates : list<Item> [default]
The form delegates displayed in the container.
horizontalPadding : real [default: 0]
Padding property used around the content edges.
leftPadding : real [default: 0]
Padding property used around the content edges.
maximumWidth : real [default: Kirigami.Units.gridUnit * 30]
This property holds the maximum width of the grid.
padding : real [default: 0]
Padding property used around the content edges.
rightPadding : real [default: 0]
Padding property used around the content edges.
topPadding : real [default: 0]
Padding property used around the content edges.
verticalPadding : real [default: 0]
Padding property used around the content edges.