VMware {code} Community
kumar_t
Enthusiast
Enthusiast

Regarding API info in vSphere 8.0 client SDK

Hi,

I'm going through the vSphere client 8.0 release notes and it is mentioned that a new javascript API(refreshPluginItemsState) was introduced. However, I could not find it in the SDK documentation 

Could please provide some info on the usage and when to use?

Thanks,

Kumar

0 Kudos
1 Reply
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi Kumar,

 

This JS API refreshes the plugin views that rely on filtering conditions.
For example: Plugin A introduces a view that is dynamically filtered based on a property value of some object.
If the property value is changed by the plug-in using the public vSphere APIs, then the plug-in needs to call this API to signal the UI to re-evaluate the state of the initiator's plug-in related items.

Usage: htmlClientSdk.app.refreshPluginItemsState();

Let us know if you have any questions.

Best Regards,

Denis

0 Kudos