FormPlaceholderMessageDelegate
Properties | |
string | explanation |
alias | hoveredLink |
Signals | |
void | linkActivated (string link) |
void | linkHovered (string link) |
Detailed Description
A placeholder message indicating that a FormCard is empty.
Example usage:
import org.kde.kirigamiaddons.formcard as FormCard
FormCard.FormCardPage { FormCard.FormHeader { title: i18nc("@title:group", "Items") }
FormCard.FormCard { FormCard.FormPlaceholderMessageDelegate { text: i18nc("@info:placeholder", "There are no items in this list") visible: repeater.count === 0 }
Repeater { id: repeater model: [ ... ] delegate: [ ... ] }
FormCard.FormDelegateSeparator {}
FormCard.FormButtonDelegate { text: i18nc("@action:button", "Add Item") icon.name: "list-add-symbolic" } } }
- Since
- 6.9
Definition at line 41 of file FormPlaceholderMessageDelegate.qml.
Property Documentation
◆ explanation
|
read |
This property holds the smaller explanatory text to show below the larger title-style text.
Useful for providing a user-friendly explanation on how to proceed.
Optional; if not defined, the message will have no supplementary explanatory text.
Definition at line 51 of file FormPlaceholderMessageDelegate.qml.
◆ hoveredLink
|
read |
This property holds the link embedded in the explanatory message text that the user is hovering over.
Definition at line 56 of file FormPlaceholderMessageDelegate.qml.
Member Function Documentation
◆ linkActivated
|
signal |
This signal is emitted when a link is clicked or tapped in the explanatory message text.
- Parameters
-
The clicked or tapped link.
◆ linkHovered
|
signal |
This signal is emitted when a link is hovered in the explanatory message text.
- Parameters
-
The hovered link.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:48:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.