Methods
(static) buildMenu() → {HTMLDivElement}
Builds menu component HTML element.
- Source:
Returns:
menu component HTML element.
- Type
- HTMLDivElement
(static) buildMenuCloseButton() → {HTMLSpanElement}
Builds menu close button HTML element.
- Source:
Returns:
menu close button HTML element.
- Type
- HTMLSpanElement
(static) buildMenuOpenButton() → {HTMLDivElement}
Builds menu open button component HTML element.
- Source:
Returns:
menu open button component HTML element.
- Type
- HTMLDivElement
(static) buildMenuSearch() → {HTMLDivElement}
Builds menu search component HTML element.
- Source:
Returns:
menu search component HTML element.
- Type
- HTMLDivElement
(static) buildMenuTimezoneList() → {HTMLDivElement}
Builds menu list HTML element.
- Source:
Returns:
menu list HTML element.
- Type
- HTMLDivElement
(static) buildTimezoneListCity(cityName, selectable) → {HTMLLIElement}
Builds timezone list city HTML element.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
cityName |
String | city name to display in the HTML. | |
selectable |
Boolean | false | is city selectable as a timezone. |
- Source:
Returns:
timezone list city HTML element.
- Type
- HTMLLIElement
(static) buildTimezoneListGroup(groupName, selectable) → {HTMLLIElement}
Builds timezone list group HTML element.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
groupName |
String | group name to display in the HTML. | |
selectable |
Boolean | false | is group selectable as a timezone. |
- Source:
Returns:
timezone list group HTML element.
- Type
- HTMLLIElement
(static) buildTimezoneListRegion(regionName, selectable) → {HTMLLIElement}
Builds timezone region city HTML element.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
regionName |
String | region name to display in the HTML. | |
selectable |
Boolean | false | is region selectable as a timezone. |
- Source:
Returns:
timezone region city HTML element.
- Type
- HTMLLIElement
(static) buildTimezoneTimeDatePlaceholders(showDate) → {HTMLDivElement}
Builds timezone, date and time HTML elements.
Then returns all of them in a wrapper element.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
showDate |
Boolean | true | should date be shown on the widget face. |
- Source:
Returns:
timezone, date and time HTML elements in a wrapper HTML element.
- Type
- HTMLDivElement
(static) buildWidgetFace(showDate) → {HTMLDivElement}
Builds widget face component HTML element.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
showDate |
Boolean | true | should date be shown on the widget face. |
- Source:
Returns:
widget face component HTML element.
- Type
- HTMLDivElement
(static) buildWidgetWrapper(theme) → {HTMLDivElement}
Build widget wrapper HTML element.
Parameters:
Name | Type | Description |
---|---|---|
theme |
String | color theme of the widget. Valid entires - one of the ["light", "dark"]. |
- Source:
Returns:
widget wrapper HTML element.
- Type
- HTMLDivElement