>

AltBrowser QML Type

A convinient way of switching from a grid to a list view. More...

Import Statement: import org.mauikit.controls 1.0
Since: org.mauikit.controls 1.0
Inherits:

Page

Properties

Detailed Description

The AltBrowser makes use of the GridView and ListBrowser components, there is a property to dinamically switch between the two.

For some navigation patterns is a good idea to provide a grid view when the application screen size is wide enough to fit much more information and a list view when the space is contrained since the list is much more compact, and makes navigation much more quicker, for this one could use the viewType property binded to a size condition.

Property Documentation

ViewType : viewType

Sets the view that's going to be in use.

The weight can be one of:

ConstantDescription
ViewType.Grid 
ViewType.ListThe default

[read-only] count : int


currentIndex : int

The index of the current item selected in either view type. This value is synced to both view types.


[read-only] currentView : Item

The current view being used, the GridView or the ListBrowser. To access the precise view use the aliases for the GridView or ListView.


enableLassoSelection : bool

Allow the lasso selection for multiple items with mouse or track based input methods.


gridDelegate : Component

The delegate to be used by the GridView.


[read-only] gridView : GridView

The GridView used as the grid view alternative.


holder : Holder

Item to set a place holder emoji and message. For more details on its properties check the Holder component.


listDelegate : Component

The delegate to be used by the ListBrowser.


[read-only] listView : ListBrowser

The ListBrowser used as the list view alternative.


model : var

The shared data model to be used by both view types.


selectionMode : bool

Allow the selection mode, which sets the views in the mode to accept drag and hover to select multiple items.


viewType : int

Sets the view that's going to be in use.

The weight can be one of:

ConstantDescription
ViewType.Grid 
ViewType.ListThe default