Icon

ui.Icon

constructor

new Icon(): Icon

Returns

Icon

exists

exists(name): boolean

Check if icon exist in store

Parameters

Name Type
name string

Returns

boolean

Defined in

src/core/ui/icon.ts#47


get

get(name, defaultValue?): string

Return SVG icon

Parameters

Name Type Default value
name string undefined
defaultValue string '<span></span>'

Returns

string

Defined in

src/core/ui/icon.ts#54


set

set(name, value): typeof Icon

Set SVG in store

Parameters

Name Type
name string
value string

Returns

typeof Icon

Defined in

src/core/ui/icon.ts#61


makeIcon

makeIcon(jodit, icon): CanUndef<Node>

Make icon html element

Parameters

Name Type
jodit IViewBased<IViewOptions>
icon IUIIconState

Returns

CanUndef<Node>

Defined in

jodit/src/core/ui/icon.ts:71