アイコンが HTTP 要求を介して正常に読み込まれたときに 発生する Observable。
デフォルトの font-family を返します。
const defaultFamily = this.iconService.defaultFamily;
デフォルトの font-family を設定します。
this.iconService.defaultFamily = 'svg-flags';
キャッシュに SVG 画像を追加します。SVG ソースは url です。
this.iconService.addSvgIcon('aruba', '/assets/svg/country_flags/aruba.svg', 'svg-flags');
キャッシュに SVG 画像を追加します。SVG ソースはテキストです。
this.iconService.addSvgIconFromText('simple', '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
<path d="M74 74h54v54H74" /></svg>', 'svg-flags');
指定した font-family に関連するカスタム クラスがある場合は返します。
const familyClass = this.iconService.familyClassName('material');
キャッシュした SVG 画像のキーを返します。
const svgIconKey = this.iconService.getSvgIconKey('aruba', 'svg-flags');
指定した SVG 画像がキャッシュに存在するかどうかを返します。
const isSvgCached = this.iconService.isSvgIconCached('aruba', 'svg-flags');
指定した font-family の IgxIconComponent に適用するカスタム クラスを登録します。
this.iconService.registerFamilyAlias('material', 'material-icons');
Ignite UI for Angular Icon サービス -
Ignite UI Icon Service は、カスタム SVG 画像を IgxIconComponent で使用できます。 指定した font-family に従って IgxIconComponentに適用されるカスタム クラスに関連付けするために使用できます。 例: