2022.2

Table Of Contents
Option Description Type Default
stampAlign
Thepositionofthestamp,specifiedbycombininghorizontalalignment(left,cen-
ter,right)withverticalalignment(top,middle,bottom)andjoiningthemwithaver-
ticalbar('|').
String 'bottom|left'
stampFontSize
Thetimestamp'sfontsize:small,medium,orlarge. String 'medium'
Events
TheCameralistens forthefollowingcustomevents.
Event Description
clear.cotg
Removesthepicture.
save-state.cotg
SavesthepathofthecurrentpicturetothelocalstorageoftheCOTGapp.
restore-state.-
cotg
RestoresthestateofthewidgetwhentheformisreopenedintheCOTGapp,aftertheapphasrestoredpreviouslyenteredvaluesof
staticinputfields.
TheCamerabroadcaststhefollowingevents.
Event Description
clear.cotg
FiredaftertheuserhasclickedtheClearbutton.
set.cotg
Firedaftertheuserhastakenorselectedapicture.
DateandFormattedDate
cotgDatePicker()
InitializingaDateorFormattedDateelementpreparesitforuserinteraction.
Example: $('myDatePicker').cotgDatePicker();
NotethatthedifferencebetweenaDateandaFormattedDateislaiddownintheHTMLstructureofthe
element.
Events
TheDateandFormattedDateelementslistenforthefollowingcustomevents.
Page 559