Skip to content

charton API


charton API / @chart-on/ui / index / icon

Function: icon() ​

icon(source, size?): Element

Defined in: ui/src/dom.ts:72

The element to show for an icon source (see IconSource), size px square; a function's element is used as it comes.

Parameters ​

source ​

IconSource

size? ​

number = 16

Returns ​

Element