ListItemBasic QML Type
The basic list item component of Neptune 3. More...
Since: | Qt 5.11 |
Inherited By: | ListItem, ListItemFlatButton, ListItemProgress, ListItemSwitch, and ListItemTwoButtons |
Properties
- accessoryBottomDelegateComponent : Component
- accessoryDelegateComponent1 : Component
- accessoryDelegateComponent2 : Component
- dividerVisible : bool
- middleSpacerUsed : bool
- rightSpacerUsed : bool
- subText : string
- wrapText : bool
Detailed Description
The ListItemBasic provides a basic type of a list item with an indicator as an icon or an image and text with subtext followed by the indicator.
See Neptune 3 UI Components and Interfaces to see more available components in Neptune 3 UI.
Example Usage
The following example uses ListItemBasic:
import QtQuick 2.10 import shared.controls 1.0 Item { id: root ListView { model: 3 delegate: ListItemBasic { text: "Title ListItem" subText: "Subtitle ListItem" } } }
Property Documentation
accessoryBottomDelegateComponent : Component |
This property holds an element at the bottom of the list item.
accessoryDelegateComponent1 : Component |
This property holds a component at the right side of list item.
accessoryDelegateComponent2 : Component |
This property holds a component at the right side of list item next to accessoryDelegateComponent2 if it is defined.
dividerVisible : bool |
This property defines if there is a divider on a list item. Default value is true.
middleSpacerUsed : bool |
This property specifies a margin between the left and the right parts of a ListItem.
This property's default is false.
rightSpacerUsed : bool |
This property specifies a margin between the right side of list item and the last element at the right side.
This property's default is false.
subText : string |
This property holds text in the second line on a list item.
wrapText : bool |
The property defines if the text and subtext are wrapped. In notifications long text is shown on several lines and this property has to be set true. In normal lists the property value is remained false.
This property's default is false.
© 2018 Pelagicore AG. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.