The following documentation shows how to create a custom widget step by step.
Enter the course that you would like to create a widget for and click on Edit Course on the navigation bar.
Click Create Widget.
Type a Name for the widget and an associated Description.
Click the Content tab.
If you want to add a file, click the Insert Stuff button as show in the picture.
Once you have selected the file you would like, click Upload.
Click the Customize Widget Style button.
Within the customize screen change any of the following settings.
When you are done, click Save.
Add the content that you would like to within the contents box and then click Save.
Click the Release Conditions tab.
Click Attach Existing or Create and Attach to add applicable release conditions.
*Note: Release Conditions are used for making an item appear only once a certain event occurs. For example, you would like for your custom widget to appear after a certain quiz has been attempted.
Click Save and Close when finished.