TermEdit.insertData

Syntax

insertData(data: PP.Ui.Term || Array, index: Number, isUpdateContent: Boolean, fireEvent: Boolean);

Parameters

data. Term or array of terms described as an object, string or object of the PP.Ui.Term class.

index. Position of the element, after which insert must be done.

isUpdateContent. Indicates if term editor contents is refreshed after insert. If the parameter is set to True, term editor is refreshed. By default the property is set to True.

fireEvent. Indicates if the TermEdit.TermsChanged event is fired. If the parameter is set to True, the TermEdit.TermsChanged event is fired.

Description

The insertData method adds a term or array of terms into term editor.

Example

The example of method use is given in description of the Term.BecameEmpty method.

See also:

TermEdit