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

SignaturehtmlClientSdk.initialize(callback):void
DescriptionInitializes 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: callbackThe 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

SignaturehtmlClientSdk.isInitialized():boolean
DescriptionTests whether the htmlClientSdk object has been initialized.