addIcon

addIcon() function

Adds an icon to the library.

Signature:

export function addIcon(iconId: string, svgContent: string): void;

Parameters

ParameterTypeDescription
iconIdstringthe icon ID
svgContentstringthe content of the SVG.

Returns:

void