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: |
Properties
- ViewType : viewType
- count : int
- currentIndex : int
- currentView : Item
- enableLassoSelection : bool
- gridDelegate : Component
- gridView : GridBrowser
- holder : Holder
- listDelegate : Component
- listView : ListBrowser
- model : var
- selectionMode : bool
- viewType : int
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
Sets the view that's going to be in use.
The weight can be one of:
Constant | Description |
---|---|
ViewType.Grid | |
ViewType.List | The default |
The index of the current item selected in either view type. This value is synced to both view types.
The current view being used, the GridView or the ListBrowser. To access the precise view use the aliases for the GridView or ListView.
Allow the lasso selection for multiple items with mouse or track based input methods.
[read-only] gridView : GridBrowser |
The GridBrowser 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.
The delegate to be used by the ListBrowser.
[read-only] listView : ListBrowser |
The ListBrowser used as the list view alternative.
Allow the selection mode, which sets the views in the mode to accept drag and hover to select multiple items.
Sets the view that's going to be in use.
The weight can be one of:
Constant | Description |
---|---|
ViewType.Grid | |
ViewType.List | The default |