RedDokia API Reference / getRedDokiaIconSvg
Function: getRedDokiaIconSvg()
ts
function getRedDokiaIconSvg(name, size?): string;Returns raw <svg>...</svg> markup string for a built-in RedDokiaIcons name or inline SVG string.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
name | string | undefined | Built-in icon key in RedDokiaIcons or inline <svg> string |
size? | number | 16 | Width and height in pixels (default: 16) |
Returns
string
SVG markup string, or '' if the icon name is not found