2022.2

Table Of Contents
Event Description
clear.cotg Removes the Document ID.
TheDocumentIDelementbroadcaststhefollowingevent.
Event Description
set.cotg
Thiseventisfiredduringinitializationoftheelement,aftersettingitsvaluetothecurrentDocumentID.
FieldsTable
TheFieldsTableelementitselfisjustatable,soitdoesn'thavetobeinitialized.However,afterdynam-
icallyaddingittoaForm,youstillhavetoaddthecorrecteventhandlerstotheAddandDeletebuttons,
asfollows(replacemyTablebytheIDofyourtable):
$("#myTable [role=cotg-add-row-button]").on("click", function(){
$(this).closest('table').cotgAddRow(true);
});
$("myTable").on("click", "[role=cotg-delete-row-button]", function(){
$(this).closest('tr').cotgDeleteRow();
});
Notethatnestedtablesarenotsupported.
Geolocation
cotgGeolocation([
options
])
options
Optional.Anarraycontainingthedesiredsettings,e.g.{enableHighAccuracy:true,timeout:3000}.For
anyunspecifiedoptionsthedefaultsettingswillbeused.
CallcotgGeolocation([options])onthenewGeolocationelementwithanysettingsthatyou
wanttobedifferentfromthedefaults.
Example: $('#myGeolocation').cotgGeolocation({timeout: 6000});
Howtochangethedefaultsettingsisexplainedinanothertopic:"Changingdefaultsettingsforwidgets"
onpage547.
Page 561