feat(StatusPopupMenu): introduce `closeHandler` hook
This enables us to predefine default close handlers for popup menus.
This commit is contained in:
parent
645a3b79a2
commit
fb51e9d74a
|
@ -16,6 +16,13 @@ Menu {
|
|||
|
||||
property int menuItemCount: 0
|
||||
property var subMenuItemIcons: []
|
||||
property var closeHandler
|
||||
|
||||
onClosed: {
|
||||
if (typeof closeHandler === "function") {
|
||||
closeHandler()
|
||||
}
|
||||
}
|
||||
|
||||
delegate: MenuItem {
|
||||
id: statusPopupMenuItem
|
||||
|
|
Loading…
Reference in New Issue