2022.2

Table Of Contents
UserAccount
cotgUserAccount()
InitializinganewUserAccountelementputstheaccountofthecurrentuserinthehiddeninputofthis
element.
Example: $('#myUser').cotgUserAccount();
Events
TheUserAccountelementlistens forthefollowingcustomevent.
Event Description
clear.cotg
RemovestheUserAccountdata.
TheUserAccountelementbroadcaststhefollowingevent.
Event Description
set.cotg
Thiseventisfiredduringinitializationoftheelement,aftersettingitsvaluetothecurrentuseraccount.
Content elements
Onceyouhavecreatedatemplate,itcanbefilledwithallkindsofelements,fromtexttobarcodesand
fromtablestofieldsonawebform.Alltypesofelementsarelistedonthispage.
Thereareseveralwaystoinsertelements,see"Insertinganelement"onpage569.
EachelementcanhaveanIDandaclass,aswellasanumberofotherproperties,dependingonthe
element'stype.Whenanelementisselected,itspropertiescanbechanged;see"Selectinganele-
ment"onpage570,"Attributes"onpage568and"Stylingandformattinganelement"onpage571.
ID'sandclassesareparticularlyusefulwithregardtovariabledata(see"Personalizingcontent"on
page708)andstyling(see"StylingtemplateswithCSSfiles"onpage672).
Whenyouaddelements,suchastext,imagesoratable,tothecontentofatemplate,youareactually
constructinganHTMLfile.ItispossibletoeditthesourceoftheHTMLfiledirectlyintheDesigner;see
"EditingHTML"onpage568.
Element types
Thefollowingtypesofcontentcanbeaddedtothecontentofatemplate:
Page 566