1.8

Table Of Contents
Event Description
bind-to-
image.cotg
Bind an annotation to the picture.
clear.cotg Removes any annotations.
clear-
note.cotg
Removes any annotations. When using this element with a Camera element,
trigger this event to remove annotations without removing the picture.
restore-
state.cotg
Restores the annotations when the form is reopened in the COTG app, after
the app has restored previously entered values of static input fields.
save-
state.cotg
Saves the annotations.
The Image & Annotation element broadcasts the following events.
Event Description
set.cotg Fired after an annotation has been made.
Locale
cotgLocale()
Initializing a new Locale element sets it to the device's locale.
Example: $('#myLocale').cotgLocale();
Events
The Locale element listens for the following event.
Event Description
clear.cotg
Removes the Locale data.
The Locale element broadcasts the following event.
Page 461