MetabaseSaveDialog.getIdControl

Syntax

getIdControl();

Description

The getIdControl method returns text box where the user should enter identifier of the object to be saved.

Comments

The method returns an object of the PP.Ui.TextBox type.

Example

To execute the example, the HTML page must contain the MetabaseSaveDialog component named saveDialog (see Example of Creating the MetabaseSaveDialog Component). Set red fill color for the blocks that contain entry boxes for the identifier and name of the object to save:

// Get fields used to enter name and identifier of the object to save
var nameControl = saveDialog.getNameControl();
var idControl = saveDialog.getIdControl();
// Determine a new style for entry boxes
var style = "background-color: " + PP.Color.Colors.red + "; padding: 1px";
// Set red fill color for the blocks that contain these entry boxes
nameControl.setStyle(style);
idControl.setStyle(style);

After executing the example red fill color is set for the blocks that contain entry boxes for the identifier and name of the object to save:

See also:

MetabaseSaveDialog