SwipeButton
A button with a default style to be used together with SwipeOptionsContainer. More...
Import Statement: |
import Felgo 4.0 |
Since: |
Felgo 2.7.0 |
Inherits: |
AppButton
|
Properties
Detailed Description
The SwipeButton is a variant of the AppButton control intended to be used together with the SwipeOptionsContainer type. It comes with a
default look that matches platform-specific styles.
App {
ListPage {
model: [{text: "Item 1", detailText: "Detail 1"}, {text: "Item 2", detailText: "Detail 2"}]
delegate: SwipeOptionsContainer {
id: container
SimpleRow {
id: row
}
leftOption: SwipeButton {
text: "Option"
iconType: IconType.gear
height: row.height
onClicked: {
row.item.text = "Option clicked"
row.itemChanged()
container.hideOptions()
}
}
rightOption: AppActivityIndicator {
height: row.height
width: height
}
}
}
}
Property Documentation
hideOptionsOnClick : bool
|