Expand all

LanguageSearcher

Overlay displaying a structured list of languages for a page, only accessible via the mobileFrontend.languageSearcher.onOpen hook.

Properties

Methods

addBanner(bannerHTML, firstMissingLanguage) #

Method that can be called outside MF extension to render a banner inside the language overlay.

Stable for use inside ContentTranslation

Parameters:

Name Type Description
bannerHTML string
firstMissingLanguage string
Source:

Method that can be called outside MF extension to render a banner inside the language overlay.

filterLanguages(searchQuery, searchOrigin) #

Filter the language list to only show languages that match the current search term.

Parameters:

Name Type Description
searchQuery string

of search term (lowercase).

searchOrigin 'entrypoint-banner' | 'ui'

for internal use by CX entrypoints only

Source:
Filter the language list to only show languages that match the current search term.

onLinkClick(ev) #

Article link click event handler

Parameters:

Name Type Description
ev jQuery.Event
Source:
Article link click event handler

onSearchInput(ev) #

Search input handler

Parameters:

Name Type Description
ev jQuery.Event

Event object.

Source:
Search input handler