GalleryRollItem
Properties | |
bool | cache |
var | cb |
var | images |
int | orientation |
Detailed Description
A custom item to be used as a delegate in the browsing views or as a standalone card. This element presents a group of images in a carousel form.
- Since
- org.mauikit.controls
This control inherits all properties from the MauiKit GridBrowserDelegate control. As such, this can have two labels, for a title and a message.
The header part of this control, the actual carousel of images, is handled by a GalleryRollTemplate.
- See also
- GalleryRollTemplate
You can find a more complete example at this link.
Definition at line 48 of file GalleryRollItem.qml.
Property Documentation
◆ cache
|
read |
Whether the images should be saved in the cache, to reduce loading times.
By default this is set to true
.
Definition at line 54 of file GalleryRollItem.qml.
◆ cb
|
read |
A callback function to manage what image is positioned.
This callback function is called for each image source set in the model images
, so the final source can be modified. This function should return a - new or modified - image source URL.
As an example, if the images
model looks like: ["page1", "page2", "page3"]
- which are not file URLs, this callback function can be use to map each individual source to an actual file URL.
Definition at line 71 of file GalleryRollItem.qml.
◆ images
|
read |
A list of images to be used.
This will be use as the model.
Definition at line 58 of file GalleryRollItem.qml.
◆ orientation
|
read |
The orientation of the transition of the images.
By default this is set to horizontal using ListView.Horizontal
. Possible values are:
- ListView.Horizontal
- ListView.Vertical
Definition at line 78 of file GalleryRollItem.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.