FormulaEditor.NamingTextBox

Syntax

NamingTextBox: PP.Ui.TextBox;

Description

The NamingTextBox property sets a text field of the Name container.

Comments

The Name container is under the calculation panel.

The property is read-only.

Example

To execute the example, the page must contain the FormulaEditor component named formulaEditor (see Example of Creating the FormulaEditor Component). Display the Name container and the Warning button in the formula editor:

// Display the Name container
formulaEditor.setIsNamingVisible(True);
// Display the Warning button
formulaEditor.setWarningMessage("Warning", 2);
// Add a string to the text field of the Name container
formulaEditor.getNamingTextBox().setContent("Value");

As a result the Name container with text and the Warning button are added to the formula editor:

After clicking the Warning button the cursor is moved after the + character.

See also:

FormulaEditor