To create a new dashboard widget, use the method ComponentsProvider.add(), see the linked documentation.
To make a dashboard widget visible, you need an application that also includes dashboard functionality (either the one that contains the plugin, or another app that you create, for example, using the "Own applications" menu item).
To include dashboard functionality, subscribe the application to at least the following plugins: Device list, device detail, dashboard und key performance indicators.
Cheers,
André
To include dashboard functionality, subscribe the application to at least the following plugins: Device list, device detail, dashboard and key performance indicators.
I followed the above statement but I can't able to make a dashboard visible.
Thanks in advance!
Saravana,
What André is talking about is now in the documentation here: http://cumulocity.com/guides/web/widget-plugin/
And as an advice: by default I always use (subscribe) all plugins from the Cockpit app when we created a widget or a plugin, after it works, you can then delete the plugins that you do not want yo use.
Yeah, that probably makes more sense than what I wrote.
Thank you, Mr.Jorge Enrique Hernandez Amaya.