1.8

Table Of Contents
Fields Table
The Fields Table element itself is just a table, so it doesn't have to be initialized. However, after
dynamically adding it to a Form, you still have to add the correct event handlers to the Add and
Delete buttons, as follows (replace myTable by the 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();
});
Geolocation
cotgGeolocation([options])
options
Optional. An array containing the desired settings, e.g. {enableHighAccuracy: true, timeout:
3000}. For any unspecified options the default settings will be used.
Call cotgGeolocation([options]) on the new Geolocation element with any settings that you
want to be different from the defaults.
Example: $('#myGeolocation').cotgGeolocation({timeout: 6000});
How to change the default settings is explained in another topic: "Changing default settings for
widgets" on page444.
Option Description Type Default
enableHighAccuracy
By default, the device attempts to retrieve a
position using network-based methods.
Setting this property to true tells the
framework to use more accurate methods,
such as satellite positioning.
Boolean false
maximumAge Accept a cached position if it isn't older
than the specified time in milliseconds.
Number 3000
Page 459