PreviewLabGalleryState

class PreviewLabGalleryState(initialSelectedPreview: Pair<String, PreviewLabPreview>? = null)

State holder for PreviewLabGallery.

Parameters

initialSelectedPreview

Preview, selected by default.

See also

Constructors

Link copied to clipboard
constructor(initialSelectedPreview: Pair<String, PreviewLabPreview>? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addToComparePanel(groupName: String, newPreview: PreviewLabPreview)

Adds a Preview to the compare panel

Link copied to clipboard
fun onQueryChange(query: String)

Changes the search query

Link copied to clipboard
fun removeFromComparePanel(indexInSelectedPreviews: Int)

Removes a Preview from the compare panel

Link copied to clipboard
fun select(groupName: String, preview: PreviewLabPreview)

Select Preview.

Link copied to clipboard
fun unselect()

Deselects the selected Preview and returns it to the "nothing selected" state.