Contents |
The PopupList component contains a button which opens a spinnable list of entries when clicked. The list of entries as well as the number of entries displayed at a time can be set. The entries will adapt their size to the given height, but the width must be set big enough to allow the tags in your model to be displayed without being cut at their sides.
AppPage {
PopupList {
id: popup
width: 150
height: 200
popupListModel: myModel
onValueSelected: {
// do something
}
ListModel {
id:myModel
ListElement { tag: "1" }
ListElement { tag: "2" }
ListElement { tag: "3" }
ListElement { tag: "4" }
ListElement { tag: "5" }
}
}
}