Resolves an item icon from the current menu context. Returns
an SVG markup string (or null / empty for "no icon"). The
markup is dropped into the icon column via innerHTML, so it
must be trusted content. Stroke / fill colours that use
currentColor will pick up the icon column's text colour.
Type declaration
(context:any):string|null|undefined
Parameters
context: any
Current menu context.
Returns string|null|undefined
SVG markup, or null / empty when no icon should render.
Resolves an item icon from the current menu context. Returns an SVG markup string (or
null/ empty for "no icon"). The markup is dropped into the icon column viainnerHTML, so it must be trusted content. Stroke / fill colours that usecurrentColorwill pick up the icon column's text colour.