Class: shaka.ui.TextColorMenu

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:
Source:

Extends

Members

COLORS :Map<string, string>

The colors of the menu, with their localized names.
Type:
  • Map<string, string>
Source:

configName_ :string

Type:
  • string
Source:

longNameId_ :string

Type:
  • string
Source:

nameId_ :string

Type:
  • string
Source:

Methods

getCurrentValueLabel()

Source:

getItems()

Source:

getLabelForItem()

Source:

getPreviewConfigForItem()

Source:

getSwatchColorForItem()

Source:

onItemSelected()

Source:

updateLocalizedStrings()

Source: