Constructor
new TextColorMenu(parentnon-null, controlsnon-null, icon, configName, nameId, longNameId)
Parameters:
| Name | Type | Description |
|---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls | |
icon |
string | |
configName |
string | The name of the color in the text displayer configuration. |
nameId |
string | The localized name of the menu inside a menu group. |
longNameId |
string | The localized name of the menu elsewhere. |
- Extends:
- shaka.ui.TextStyleMenu<string>
- Source:
Extends
- shaka.ui.TextStyleMenu<string>
Members
COLORS :Map<string, string>
The colors of the menu, with their localized names.
Type:
- Map<string, string>
- Source:
Methods
getCurrentValueLabel()
- Source:
getItems()
- Source:
getLabelForItem()
- Source:
getPreviewConfigForItem()
- Source:
getSwatchColorForItem()
- Source:
onItemSelected()
- Source:
updateLocalizedStrings()
- Source: