Class

DictionaryPanel

DictionaryPanel()

The DictionaryPanel component implements a tool panel that shows dictionary entries from generic dictionaries. It supports the handling of dictionary references and scripture references.

Methods

# _findKeyElementFuzzy(key) → {HTMLElement|null}

Find a dictionary key DOM element using case-insensitive and partial matching. Used as a fallback when the standard key matching in openKeyFromTextReference fails.

Parameters:
Name Type Description
key string

The key to search for

View Source frontend/components/tool_panel/dictionary_panel.js, line 533

The matching DOM element, or null if not found

HTMLElement | null

# _waitForKeyListLoaded() → {Promise}

Wait until the current key list has been loaded after a dictionary change. handleDictionaryChange loads keys asynchronously with a 500ms setTimeout.

View Source frontend/components/tool_panel/dictionary_panel.js, line 509

Resolves when key list is available

Promise

# async openModuleEntry(moduleCode, key)

Open a specific entry from a dictionary module. If the module differs from the currently selected dictionary, it switches the dropdown to that module first.

Parameters:
Name Type Description
moduleCode string

The dictionary module code (e.g., 'NETmap', 'Vines')

key string

The entry key to open

View Source frontend/components/tool_panel/dictionary_panel.js, line 431