Class: shaka.ui.Icon

Constructor

new Icon(parentnullable, iconopt, nullable)

Parameters:
Name Type Attributes Description
parent Element <nullable>
icon shaka.extern.UIIcon | string <optional>
<nullable>
Source:

Members

svg_ :SVGElement

Type:
  • SVGElement
Source:

Methods

addPath_(path)

Add a path element, call `emptyChildNodes()` first to clean previous path elements.
Parameters:
Name Type Description
path string
Source:

applyInlinedSVG_(path, viewBoxnullable)

Parameters:
Name Type Attributes Description
path string | Array<string>
viewBox string <nullable>
Source:

emptyChildNodes_()

Remove all the child nodes from svg element
Source:

getSvgElement() → {SVGElement}

Source:
Returns:
Type
SVGElement

use(icon)

If a single string is passed, it is treated as an SVG path
Parameters:
Name Type Description
icon shaka.extern.UIIcon | string
Source: