This class is the ApiKeys dialog
The constructor
Name | Type | Description |
---|---|---|
apiKeys | Array of ApiKey | An array with the existing ApiKeys |
haveApiKeysFile | Boolean | A boolean indicating when a ApiKey file was found on the server |
Get a JSON string with the ApiKeys in the control
An array with the HTMLElements that have to be added in the content of the dialog.
The dialog title. Overload of the BaseDialog.title property
An HTMLElement that have to be added as toolbar for the dialog. Overload of the BaseDialog.toolbarHTMLElement property
Add an array of ApiKeys to the dialog.
Name | Type | Description |
---|---|---|
apiKeys | Array of ApiKey | An array with the ApiKeys to add |
Overload of the BaseDialog.canClose ( ) method.
Create all the controls needed for the dialog. Overload of the base class createContentHTML
Overload of the BaseDialog.onCancel ( ) method. Called when the cancel button is clicked
Overload of the BaseDialog.onOk ( ) method. Called when the Ok button is clicked
Overload of the BaseDialog.show ( ) method.
Validate the ApiKeys. Each ApiKey must have a not empty name and a not empty key. Duplicate ApiKey names are not allowed
A div that contains the ApiKeysControl
The dialog toolbar
Remove all events listeners on the toolbar and controls, so all references to the dialog are released.