Pascal Precht c2f418205f feat(StatusChatList): introduce popupMenu property
Chat list items can open a context on right click as well, so `StatusChatList`
needs to provide an API for users to pass down a `StatusPopupMenu` accordingly.

This is now possible with a dedicated `popupMenu` proporty that can be
used as follows:

```qml
StatusChatList {
    ...
    popupMenu: StatusPopupMenu {

        property string chatId

        openHandler: function () {
            ...
        }

        StatusMenuItem {
            ...
        }
        ...
    }
}
```

As will all `popupMenu` properties in StatusQ component, having this explicit API
option enables us to have control over how triggering components (in this case chat
list items) behave when they open a context menu (e.g. keeping them highlighted as long
as the menu is active).

When defining a `chatId` property, `StatusChatList` will hydrate it with the id of
the chat list item that has triggered the menu.

If there's more logic to be executed upon opening the menu, `openHandler` serves
as a hook similar to other popup menus. Inside the hook, users have access to the
specific `chatId`.

Closes #171
2022-09-21 18:20:02 +02:00
2022-07-07 08:55:05 -04:00
2022-08-23 19:38:23 +02:00
2022-09-21 08:57:18 +02:00
2022-09-21 18:20:01 +02:00
2022-03-10 14:12:11 -04:00
2022-03-11 15:52:47 -05:00
2022-07-14 22:04:33 +02:00
2022-09-14 15:52:16 -04:00
2022-06-30 12:11:24 -04:00
Description
Status Desktop client made in Nim & QML
https://status.app
Readme
Languages
QML 39.4%
JavaScript 29.5%
Nim 18.5%
Python 5.6%
C++ 5.2%
Other 1.6%