Protected
_colorProtected
_colorProtected
_containerProtected
_sizeProtected
_spanProtected
_srcUser-provided source code
Protected
_svgUser-provided attributes
Protected
Readonly
_svgProtected
_updateLast src update result
Optional
attrs?: undefinedOptional
id?: undefinedOptional
attrs?: undefinedProtected
Readonly
_useProtected
_useUser-provided attributes
Protected
_setProtected
_updateProtected
_updateProtected
_updateProtected
_updateProtected
_updateProtected
_updateProtected
_updateProtected
_updateReturns <svg>
element.
To assign attributes, use setSvgElAttrs instead.
<svg>
element
Returns <use>
element.
To assign attributes, use setSvgElAttrs instead.
<use>
element
Mounts image to the given element
Element or selector of an element to mount image to
this
Generated using TypeDoc
Basic SVG icon, extends SvgImage.
Usage:
Internal API
You can use this API to extend
SvgIcon
. This API is the same as in SvgImage, but with additional methods.Use SvgIcon._updateWrapperBeforeUserAttrsSet, SvgIcon._updateWrapperAfterUserAttrsSet to set custom wrapper (
<span>
) attributes.SvgIcon._updateSvgBeforeUserAttrsSet should call
super._updateSvgBeforeUserAttrsSet()
.