The following sections provide details on how to create a new widget type from scratch. However, you can also download the source code for an existing widget type and use it as a starting point.
To download widget source code:
On the Design page, click the Code tab.
Select a widget from the Widget Templates list.
Click the Download Source button and, when prompted, save the widget’s ZIP file.