ExpandableListItem
Properties | |
bool | allowStyledText |
listTAction | contextualActions |
Component | customExpandedViewContent |
alias | customExpandedViewContentItem |
alias | defaultActionButtonAction |
bool | defaultActionButtonVisible |
alias | expanded |
bool | hasExpandableContent |
alias | icon |
alias | iconEmblem |
bool | isBusy |
bool | isDefault |
bool | showDefaultActionButtonWhenBusy |
alias | subtitle |
bool | subtitleCanWrap |
alias | subtitleColor |
int | subtitleMaximumLineCount |
alias | title |
Signals | |
void | itemCollapsed () |
void | itemExpanded () |
Public Member Functions | |
void | collapse () |
void | expand () |
void | toggleExpanded () |
Detailed Description
A list item that expands when clicked to show additional actions and/or a custom view.
The list item has a standardized appearance, with an icon on the left badged with an optional emblem, a title and optional subtitle to the right, an optional default action button, and a button to expand and collapse the list item.
When expanded, the list item shows a list of contextually-appropriate actions if contextualActions has been defined. If customExpandedViewContent has been defined, it will show a custom view. If both have been defined, it shows both, with the actions above the custom view.
It is not valid to define neither; define one or both.
Note: this component should only be used for lists where the maximum number of items is very low, ideally less than 10. For longer lists, consider using a different paradigm.
Example usage:
Definition at line 83 of file ExpandableListItem.qml.
Property Documentation
◆ allowStyledText
|
read |
Definition at line 147 of file ExpandableListItem.qml.
◆ contextualActions
|
read |
Definition at line 201 of file ExpandableListItem.qml.
◆ customExpandedViewContent
|
read |
Definition at line 213 of file ExpandableListItem.qml.
◆ customExpandedViewContentItem
|
read |
Definition at line 218 of file ExpandableListItem.qml.
◆ defaultActionButtonAction
|
read |
Definition at line 154 of file ExpandableListItem.qml.
◆ defaultActionButtonVisible
|
read |
Definition at line 162 of file ExpandableListItem.qml.
◆ expanded
|
read |
expanded: bool Whether the expanded view is visible.
- Since
- 5.98
- Remarks
- This property is read-only
Definition at line 244 of file ExpandableListItem.qml.
◆ hasExpandableContent
|
read |
- Remarks
- This property is read-only
Definition at line 252 of file ExpandableListItem.qml.
◆ icon
|
read |
icon: var The name of the icon used in the list item.
- See also
- Kirigami.Icon::source
Required.
Definition at line 92 of file ExpandableListItem.qml.
◆ iconEmblem
|
read |
iconEmblem: var The name of the emblem to badge the icon with.
- See also
- Kirigami.Icon::source
Optional, defaults to nothing, in which case there is no emblem.
Definition at line 100 of file ExpandableListItem.qml.
◆ isBusy
|
read |
Definition at line 226 of file ExpandableListItem.qml.
◆ isDefault
|
read |
Definition at line 236 of file ExpandableListItem.qml.
◆ showDefaultActionButtonWhenBusy
|
read |
Definition at line 171 of file ExpandableListItem.qml.
◆ subtitle
|
read |
Definition at line 116 of file ExpandableListItem.qml.
◆ subtitleCanWrap
|
read |
Definition at line 124 of file ExpandableListItem.qml.
◆ subtitleColor
|
read |
Definition at line 139 of file ExpandableListItem.qml.
◆ subtitleMaximumLineCount
|
read |
subtitleMaximumLineCount: int The maximum number of lines the subtitle can have when subtitleCanWrap is true.
- Since
- 6.9
Optional, defaults to -1, which means no limit.
Definition at line 132 of file ExpandableListItem.qml.
◆ title
|
read |
Definition at line 108 of file ExpandableListItem.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.