Dashboard.getMultiLanguage

Syntax

getMultiLanguage();

Description

The getMultiLanguage method determines whether multilingual options are enabled for a dashboard.

Comments

Available values:

Example

To execute the example, make sure that the repository contains a dashboard with the 88665 key.

Create an HTML page with example of placing the KapBox component and execute the following operations:

  1. Open the dashboard with the 88665 key:

kapBox.open({
    Key: 88665
});
  1. Execute the following in the console:

var multilinguaCheckBox = new PP.Ui.CheckBox({
    ParentNode: "checkBox",
    Content: "Multilingual options",
    Checked: true,
    CheckedChanged: function () {
        kapBox.setMultiLanguage(multilinguaCheckBox.getChecked());
        if (kapBox.getMultiLanguage() == true) {
            console.log("Translation to different languages is enabled");
        }
    }
});

After executing the example, the Multilingual Options checkbox is added, which, if selected or deselected, enables or disables multilingual options. If multilingual options are enabled, the console displays appropriate message.

See also:

Dashboard