@elemental/ui / Class

LmnIconService

Decorators:@Injectable

No documentation has been provided.

Properties

NameTypeDescription
lastLoadedIconSet
r
WritableSignal<string | undefined>

Methods

addIcons()

Add icons to the loaded iconsets

Presentation
addIcons(iconSet: Record<string, LmnIcon | LmnIconExtended> | LmnIconExtended[], iconSetId?: string | undefined): void;
Parameters
NameTypeDescription
iconSet
Record<string, LmnIcon | LmnIconExtended> | LmnIconExtended[]

@param iconSet

iconSetId
string | undefined

@param iconSetId

Returns
void

getIcon()

Get an icon from the loaded datasets

Presentation
getIcon(name?: string | undefined, weight?: number | undefined, style?: string | undefined): SVGElement | undefined;
Parameters
NameTypeDescription
name
string | undefined

@param name

weight
number | undefined

@param weight

style
string | undefined

@param style

Returns
SVGElement | undefined
async

loadIcons()

Load icons from a metadata remote file such as a CDN

Presentation
async loadIcons(url: string): Promise<void>;
Parameters
NameTypeDescription
url
string

@param url

Returns
Promise<void>