FormPlaceholderMessageDelegate

Search for usage in LXR

FormPlaceholderMessageDelegate Class Reference
Inheritance diagram for 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

string FormPlaceholderMessageDelegate::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

alias FormPlaceholderMessageDelegate::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

void FormPlaceholderMessageDelegate::linkActivated ( string link)
signal

This signal is emitted when a link is clicked or tapped in the explanatory message text.

Parameters
Theclicked or tapped link.

◆ linkHovered

void FormPlaceholderMessageDelegate::linkHovered ( string link)
signal

This signal is emitted when a link is hovered in the explanatory message text.

Parameters
Thehovered link.

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.