<GlobalSearchResultHeader>

View as Markdown

Note: The search functionality is only available on the TalkJS Growth plan and above.

The <GlobalSearchResultHeader> component displays a header above the results of a search. There can be two headers: one for conversation results, and one for message results.

interface GlobalSearchResultHeaderProps

Props passed to the GlobalSearchResultHeader theme component.

Method Overview

loadMore

Call this function to load more search results.

Properties

type
: "messages" | "conversations"

Whether this header is displayed above conversation search results or message search results.

canLoadMore
: boolean

True if more search results can be loaded.

A collection of objects which are passed to all ConversationList theme components.

loadMore

globalSearchResultHeaderProps.loadMore()

Call this function to load more search results.

Returns

void

Example

In the default theme, the <GlobalSearchResultHeader> component is implemented as follows:

GlobalSearchResultHeader.js
1// loading...