2018.2

Table Of Contents
Events
The Time and Formatted Time elements listen for the following custom events.
Event Description
set.cotg
Stores the given time (specified in a Date object).
clear.cotg Removes the set time.
show-time-
picker.cotg
Opens the Time Picker. If no time is provided (specified in a Date
object), the current time will be shown.
User Account
cotgUserAccount()
Initializing a new User Account element puts the account of the current user in the hidden input
of this element.
Example: $('#myUser').cotgUserAccount();
Events
The User Account element listens for the following custom event.
Event Description
clear.cotg Removes the User Account data.
The User Account element broadcasts the following event.
Event Description
set.cotg This event is fired during initialization of the element, after setting its value to the
current user account.
Page 545