2022.2

Table Of Contents
Tip: IfyouhavestartedcreatingyourCaptureOnTheGotemplateusingaCOTGTemplateWiz-
ard,youcanfindready-madeelementsintheSnippetsfolderontheResourcespane.
Foundation,theframeworkaddedbytheCOTGtemplatewizards,comeswithaseriesoffeaturesthat
canbeveryusefulinCOTGforms;see"UsingFoundation"onpage528.
Naturally,WebFormelementscanalsobeusedonCOTGForms(see"Forms"onpage640and"Form
Elements"onpage644)aswellastext,imagesandotherelements(see"Contentelements"on
page566).
CaptureOnTheGotemplatescanbepersonalizedjustlikeanyothertypeoftemplate;see"Per-
sonalizingcontent"onpage708.
Tip: UsetheOutlinepaneatthelefttoseewhichelementsarepresentinthetemplateandto
selectanelement.
UsetheAttributespaneattherighttoseethecurrentelement'sID,classandsomeotherprop-
erties.
UsetheStylespanenexttotheAttributespanetoseewhichstylesareappliedtothecurrently
selectedelement.
Tip: ClicktheEdgesbuttononthetoolbartemporarilyaddsaframetocertainelementsonthe
Designtab.ThesewillnotPrintoroutput.
UsingJavaScript
COTG plugin
CaptureOnTheGowidgetsdonotfunctionwithouttheCOTGplugin:cotg-2.x.x.js.Thispluginalso
makesitpossibletoaddCOTGElementsdynamically,setdefaultsforCOTGelements,reacttoevents
thatoccurwhenauserinteractswithaCOTGelement,etc.Formoreinformationsee:"Usingthe
COTGplugin"onpage545.
Foundation
ForCOTGtemplatescreatedwithaCOTGtemplatewizard,lotsoffeaturesarealreadyavailable
throughtheFoundationframework;see"UsingFoundation"onpage528.
TheFoundationJavaScriptfilesandstylesheetsareonlyaddedautomaticallywhenyoustartcreating
aCOTGtemplatewithatemplatewizard;see"CaptureOnTheGotemplatewizards"onpage525.
Page 518