A scoped and simplified part of the headless state that is relevant to the Quickview controller.

interface QuickviewState {
    content: string;
    contentURL?: string;
    currentResult: number;
    currentResultUniqueId: string;
    isLoading: boolean;
    resultHasPreview: boolean;
    totalResults: number;
}

Hierarchy (View Summary)

Properties

content: string

The result preview HTML content.

""
contentURL?: string

The src path to use if rendering the quickview in an iframe.

currentResult: number

The position of the result in the current result set.

Can be used for quickview pagination purpose.

currentResultUniqueId: string

The current result unique ID,

isLoading: boolean

true if content is being fetched, and false otherwise.

resultHasPreview: boolean

true if the configured result has a preview, and false otherwise.

totalResults: number

The number of available results for the current result set.

Can be used for quickview pagination purpose.