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

event.onDateTimeFormatChanged()

Signature

event.onDateTimeFormatChanged(callback:function):void

Description

Registers an event handler for changes to the datetime format preferences in the vSphere Client.

Parameter: callback

A reference to a function that responds to changes in datetime preferences.

The callback function must have the following signature:

function callback():void

event.onGlobalRefresh()

Signature

event.onGlobalRefresh(callback:function):void

Description

Registers a global refresh handler that the vSphere Client will call when the Global Refresh button is clicked.

Parameter: callback

A reference to a global refresh handler.

The callback function must have the following signature:

function callback():void

event.onThemeChanged()

Signature

event.onThemeChanged(callback:function):void

Description

Registers an event handler that the vSphere Client will call when the vSphere Client changes the current theme.

Parameter: callback

A reference to a theme change handler.

The callback function must have the following signature:

function callback(theme:app.PluginTheme):void

The theme parameter identifies the new vSphere Client theme.