DictionaryTree.loadNodes

Syntax

loadNodes(keys: Array, withSelect: Boolean, focusLast: Boolean);

Parameters

keys. Array that contains key of elements to which the tree must be loaded.

withSelect. Indicates if elements are selected after loading. If this parameter is true elements are selected after loading, otherwise they are not selected.

focusLast. Indicates if the last element in the array of keys is focused. If this parameter is true focus is set for the element, otherwise it is not.

Description

The loadNodes method loads dictionary up to elements with specified keys.

Example

To execute this example, the page must contain the DictionaryBox component named dictionaryBox (see Example of creating the DictionaryBox component ). Get dictionary elements tree, load data up to the node with specified index, and next select this node:

// Get dictionary data area
var area = dictionaryBox.getDataArea();
// Get dictionary elements tree
var tree = area.getActiveDictTree();
// Load data up to specified node and select this node
tree.loadNodes([tree._Source.getChildEls()[0].getKey()], true, true);

As the result the data is reloaded and the element is selected:

See also:

DictionaryTree