new Menu(clock)
Class responsible for managing clock menu interaction with user.
Parameters:
Name | Type | Description |
---|---|---|
clock |
Clock | World Clock API. |
Throws:
-
if any menu component is missing in the DOM.
- Type
- WorldClockError
Members
clock
Returns World Clock API.
timezoneList
Returns timezones list component.
timezoneSearch
Returns timezones search component.
Methods
close()
Allows to close world clock menu.
open()
Allows to open world clock menu.