MauiKit Controls
AltBrowser.qml
13 * This controls inherits from MauiKit Page, to checkout its inherited properties refer to the docs.
16 * @note This control supports the attached `Controls.showCSD` property to display the window control buttons when using CSD.
18 * The AltBrowser makes use of the GridView and ListBrowser components, there is a property to dinamically switch between the two.
20 * For some navigation patterns is a good idea to provide a grid view when the application screen size is wide enough to fit numerous items and a list view when the space is contrained - since the list is much more compact - and makes navigation quicker.
26 * The data model is shared by both of the view types, but the delagates to be used have to be assigment for each one.
30 * There is a MauiKit Holder element that can be used to display a placeholder message, for example, when the views are empty.
46 * icon.name: _altBrowser.viewType === Maui.AltBrowser.ViewType.Grid ? "view-list-details" : "view-list-icons"
72 * <a href="https://invent.kde.org/maui/mauikit/-/blob/qt6-2/examples/AltBrowser.qml">You can find a more complete example at this link.</a>
90 readonly property Item currentView : control.viewType === AltBrowser.ViewType.List ? _listView : _gridView
120 property int currentIndex : -1
124 value: control.currentView.currentIndex
140 property var model : null
217 * @brief Toggle between the two views. If in list view then switches to grid, and from grid to list.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.