SearchBar QML Type
Provides a searchbar, that supports autocompletion and displays search results using cards. More...
Import Statement: | import Fluid.Controls 1.0 |
Properties
- cardWidth : int
- expanded : alias
- model : any
- persistent : bool
- searchPlaceHolder : string
- searchResults : var
- searchSuggestions : alias
- searchText : string
- suggestionDelegate : alias
- suggestionTextRole : string
- suggestionsHeight : int
- waveColor : color
Signals
- search(string query)
Methods
Detailed Description
Property Documentation
The width of the search card. By default the search bar centers in the parent with a margin of 64 each side
Whether the SearchBar is currently open
The suggestions to display.
See also SearchBar::suggestionTextRole and SearchBar::suggestionDelegate.
Whether the SearchBar is persistent or expandable
The suggestions to display.
See also SearchBar::suggestionTextRole and SearchBar::suggestionDelegate.
The delegate item for the suggestion list view.
See also searchSuggestions.
The model type that contains the text to display in the suggestion delegate
See also searchSuggestions.
Signal Documentation
Is emitted, when the user searches for a query. The query parameter contains the search query as string. Use this signal to provide search results.