vSphere Client JavaScript API: Event Interface

The event interface helps your plug-in with event management.

event.onGlobalRefresh() method

Signatureevent.onGlobalRefresh(pluginCallbackFunc:function):void
DescriptionRegisters a global refresh handler that the vSphere Client will call when the Global Refresh button is clicked.
Parameter: pluginCallbackFuncA reference to a global refresh handler, with signature function callback():void

event.onThemeChanged() method

Signatureevent.onThemeChanged(themeCalbackFunc:function):void
DescriptionRegisters an event handler that the vSphere Client will call when the vSphere Client changes the current theme.
Parameter: themeCallbackFuncA reference to a theme change handler, with signature function themeCallbackFunc(theme:app.PluginTheme):void