Skip to main content

Dynamic Icon Service

Service for interacting with DIGIDECK Icon library.

Methods

openDynamicIconGallery()

Description

  • Opens the Dynamic Icon Gallery modal to select an icon to use in a component

Return Value: void

Code Example

digideckCore.dynamicIconService.openDynamicIconGallery(async (icon) => {
if (!icon || !icon.renderFunction || !icon.iconOptionsConfig) return;

this.dynamicIcon = await renderIcon(icon.renderFunction, icon.iconOptionsConfig);

digideckCore.uiService.sendComponentOptionsUpdatedMessage(this.id, { [options.DYNAMIC_ICON]: this.dynamicIcon });
});