vSphere Client JavaScript API: htmlClientSdk Interface
The htmlClientSdk object provides access to all the JavaScript API interfaces. You load and initialize the htmlClientSdk first in your plug-in views.
htmlClientSdk.initialize()
method
Signature | htmlClientSdk.initialize(callback):void |
Description | Initializes the htmlClientSdk object and invokes the callback function when initialization is complete. After the htmlClientSdk object is initialized, subsequent calls invoke the callback function without needing to initialize the htmlClientSdk object. |
Parameter:
callback | The callback function
must have the following signature:
function callback():void The callback function has access to all the functions in the JavaScript API. You use the callback to code logic for initializing plug-in state. |
htmlClientSdk.isInitialized()
method
Signature | htmlClientSdk.isInitialized():boolean |
Description | Tests whether the htmlClientSdk object has been initialized. |