Class: shaka.ui.TextOpacityMenu

Constructor

new TextOpacityMenu(parentnon-null, controlsnon-null, icon, configName, opacitiesnon-null, nameId, longNameId)

Parameters:
Name Type Description
parent HTMLElement
controls shaka.ui.Controls
icon string
configName string The name of the opacity in the text displayer configuration.
opacities Array<number>
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

configName_ :string

Type:
  • string
Source:

longNameId_ :string

Type:
  • string
Source:

nameId_ :string

Type:
  • string
Source:

opacities_ :Array<number>

Type:
  • Array<number>
Source:

Methods

getCurrentValueLabel()

Source:

getItems()

Source:

getLabelForItem()

Source:

getPreviewConfigForItem()

Source:

onItemSelected()

Source:

updateLocalizedStrings()

Source: