The Groove support widget is designed to be easily embedded into your website or application. For most uses, you can simply follow the instructions for installing your widget, and everything will work as intended.
For more advanced usage, you can modify the widget's embed code to change the behavior of the widget. This is a living document, and we will update it as we open up new functionality on the widget.
groove object in your embed code manages a command queue that sends commands to the widget api. Using the groove.widget() method, you are able to communicate with the widget without actually worrying about it being fully loaded on the page. Normally, you will see this used to set up the widget id like so:
The widget() method takes the command as the first argument, and each additional argument is provided individually.
Here is a list of commands currently available to the command queue:
Before the widget is loaded, commands will be queued up as you add them. During initialization, the widget will process all of the commands in the queue first, and then it will immediately process any additional widget() calls.
Here is an example of using the command api to control loading and opening of the widget: