I’m trying to remove a SimpleRow Item from a model using a SwipeButton within a SwipeOptionsContainer. Assuming that all values of my model are the same (no way to differentiate each row by value, only by index), what would be the best approach?
ListPage {
id: listpage
model: mymodel
delegate: SwipeOptionsContainer {
id: container
SimpleRow {
id: row
}
leftOption: SwipeButton {
icon: IconType.trash
height: parent.height
onClicked: {
//remove item, but how?
}
}
}
}