DS Server

GetDictionaryListCallback Function

Function|Introduced in 32.0

Description

Callback function for retrieving a list of dictionary file names via TXTextControl.Proofing.getDictionaryList.

Syntax

function(<DictionaryInfo[]> dictionaries)

Examples

The following example demonstrates GetDictionaryListCallback in a practical document-editing workflow. Callback function for retrieving a list of dictionary file names via TXTextControl.Proofing.getDictionaryList.

function getDictionaryListCallback(dictionaries) {
    console.log("dictionaries:", dictionaries);
}

function useGetDictionaryListCallback(proofing) {
    proofing.getDictionaryList(getDictionaryListCallback);
}