Skip to main content

find-in-tab-content

Documentation / lib/components/TabManager/find-in-tab-content

default()

function default(
document: object,
searchText: string,
snippetTextSize?: number): object;

Defined in: apps/web/src/lib/components/TabManager/find-in-tab-content.js:15

Find query words in tab content and if found return object

Parameters

ParameterTypeDefault valueDescription

document

{ tabId: number; title: string; favIconUrl: string; content: string; }

undefined

document.tabId

number

undefined

document.title

string

undefined

document.favIconUrl?

string

undefined

document.content?

string

undefined

searchText?

string

undefined

snippetTextSize?

number

100

Returns

object

NameTypeDefined in

dispString

string

apps/web/src/lib/components/TabManager/find-in-tab-content.js:8

id

number

apps/web/src/lib/components/TabManager/find-in-tab-content.js:9

title

string

apps/web/src/lib/components/TabManager/find-in-tab-content.js:10

favIconUrl

string

apps/web/src/lib/components/TabManager/find-in-tab-content.js:11

lastSearchWord

string

apps/web/src/lib/components/TabManager/find-in-tab-content.js:12