Once the Zoho CLI is installed, you can create your own widget.
Once the CLI is installed, run this command to create a new project.
Select a Zoho service and give a Name for the widget which you want to create. In this case, select Zoho CRM as the service.
The sample project will be created in the respective folder directory.
To open the sample project, run the following command:
Now, you can start desiging and including the UI components for the Widget.
Note
The 'widget.html' file contains the structure, design and components of the Widget. To use the Zoho CRM APIs in the widget, you can use the API helpers provided in the JS SDK.
Note
Once you have created the widget, you can host the widget locally and test.
To host the widget locally
Once you've tested the widget and find no problems with it, you can package the widget and host it internally or externally.
And in some cases where contextual data should be passed to the widget, you need to register for the appropriate events. Registering an event means defining a function that will be executed when a certain event is triggered by your application. Event can be something that the browser does or something a user does. Following are examples of some events:
The sample code given below can be used to subscribe to a PageLoad event in your widget
You can find the API helper, JS SDK and some sample widgets in out Github page.