The following JavaScript API are used in creating custom widgets: