Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c72c4255 authored by Fabian Riethmayer's avatar Fabian Riethmayer

Added example code to inline message

parent f6345c35
Inline message
==============
.. container:: intend
|desktopicon| |mobileicon|
Purpose
-------
......@@ -137,3 +142,35 @@ If there is not enough space to display all the buttons, an overflow menu is sho
:scale: 80%
Inline message with overflow menu.
Code
----
Kirigami
~~~~~~~~
.. code-block:: qml
...
import QtQuick.Controls 2.2 as Controls
import org.kde.kirigami 2.4 as Kirigami
...
Kirigami.InlineMessage {
visible: true
text: "Remember password?"
type: Kirigami.MessageType.Positive
showCloseButton: true
...
actions: [
Kirigami.Action {
text: "Remember"
icon.name: i18n("&"dialog-ok-apply")
},
Kirigami.Action {
text: "Do not remember"
icon.name: i18n("&"dialog-cancel")
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment