getOpenDialog();
The getOpenDialog method returns the dialog box for opening repository object.
The method returns instance of the PP.Ui.MetabaseOpenDialog class.
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:
Open the dashboard with the 88665 key:
Select the Document > Open main menu item
Execute the following in the console:
kapBox.open({
Key: 88665
});
Execute the following in the console:
var openDialogButton = new PP.Ui.Button({
ParentNode: "but",
Content: "Open",
Click: function () {
kapBox.getOpenDialog().show();
}
});
var saveDialogButton = new PP.Ui.Button({
ParentNode: "but",
Content: "Save",
Click: function () {
kapBox.getSaveDialog().show();
}
});
After executing the example, the Open and Save buttons are added, clicking which open appropriate dialog boxes to open another dashboard and to save repository object.
See also: