setIcon
Code location
setIcon(
parent
,iconId
):void
Insert an SVG into the element from an iconId. Does nothing if no icon associated with the iconId.
Parameters
• parent: HTMLElement
the HTML element to insert the icon
• iconId: string
the icon ID
Returns
void
See
The Obsidian icon library includes the Lucide icon library, any icon name from their site will work here.