DictionaryTree.doPredefinedMove

Syntax

doPredefinedMove(moveOp: PP.Rds.Ui.TreeOperations);

Parameters

moveOp. Operation type.

Description

The doPredefinedMove method performs specified operation for selected tree nodes.

Example

To execute this example, the page must contain the DictionaryBox component named dictionaryBox (see Example of creating the DictionaryBox component ). Get tree of dictionary elements. Select a tree element and move it one position up:

// Get dictionary data area
var area = dictionaryBox.getDataArea();
// Get tree of dictionary elements
var tree = area.getActiveDictTree();
// Select a tree element
tree._Tree.getNodeByIndex(3).setSelected(true); 
// Move selected element one position up
tree.doPredefinedMove(PP.Rds.Ui.TreeOperations.MoveElementsUp);

As the result, the selected element is moved one position up:

Open card of the selected element to edit it:

tree.editItem();

As the result, card of the selected element opens for the user to edit the element:

See also:

DictionaryTree