Constructor
new StatisticsButton(parentnon-null, controlsnon-null)
Parameters:
| Name | Type | Description |
|---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
Classes
Members
isSubMenu :boolean
Type:
- boolean
- Overrides:
- Implements:
- Source:
isSubMenuOpened :boolean
Type:
- boolean
- Overrides:
- Implements:
- Source:
parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
statsButton :HTMLButtonElement
Type:
- HTMLButtonElement
- Overrides:
- Source:
statsContainer :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
statsDisplayedElements :Map<string, HTMLElement>
Type:
- Map<string, HTMLElement>
- Overrides:
- Source:
statsHeaderTitle :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
statsList :Array
Type:
- Array
- Overrides:
- Source:
statsNameSpan :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
statsParseFrom :Map<string, function(string): string>
Type:
- Map<string, function(string): string>
- Overrides:
- Source:
statsStateSpan :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
Methods
buildStatsContainerHeader()
Appends the shared header (title span + close icon) to the container.
Subclasses call this at the top of their loadContainer_() implementation.
generateStatComponent(name) → {HTMLElement}
Creates a label+value row for one stat and registers it for updates.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string |
- Overrides:
- Source:
Returns:
- Type
- HTMLElement
loadContainer_()
- Source:
toggleContainer()
Toggles the stats container visibility and the periodic update timer.
- Overrides:
- Source:
updateStatsDisplay()
- Overrides:
- Source: