コンストラクター
constructor
- new IgxIconService(
_sanitizer: DomSanitizer,
_httpClient: HttpClient,
_platformUtil: PlatformUtil,
_themeToken: ThemeToken,
_destroyRef: DestroyRef,
document: Document,
): IgxIconService パラメーター
_sanitizer: DomSanitizer
_httpClient: HttpClient
_platformUtil: PlatformUtil
_destroyRef: DestroyRef
document: Document
プロパティ
アクセサー
メソッド
addIconRef
- addIconRef(name: string, family: string, icon: IconMeta): void
パラメーター
name: string
family: string
返却 void
addSvgIcon
- addSvgIcon(
name: string,
url: string,
family?: string,
stripMeta?: boolean,
): void パラメーター
name: string
url: string
family: string = ...
stripMeta: boolean = false
返却 void
addSvgIconFromText
- addSvgIconFromText(
name: string,
iconText: string,
family?: string,
stripMeta?: boolean,
): void パラメーター
name: string
iconText: string
family: string = ...
stripMeta: boolean = false
返却 void
familyClassName
- familyClassName(alias: string): string
パラメーター
返却 string
getIconRef
- getIconRef(name: string, family: string): IconReference
パラメーター
name: string
family: string
getSvgIcon
- getSvgIcon(name: string, family: string): SafeHtml
パラメーター
name: string
family: string
返却 SafeHtml
isSvgIconCached
- isSvgIconCached(name: string, family: string): boolean
パラメーター
name: string
family: string
返却 boolean
registerFamilyAlias
- registerFamilyAlias(alias: string, className?: string, type?: IconType): this
パラメーター
alias: string
className: string = alias
type: IconType = "font"
返却 this
setFamily
- setFamily(name: string, meta: FamilyMeta): void
パラメーター
返却 void
setIconRef
- setIconRef(name: string, family: string, icon: IconMeta): void
パラメーター
name: string
family: string
返却 void
Ignite UI for Angular Icon Service -
Ignite UI Icon Service は、カスタム SVG 画像を IgxIconComponent で使用できます。 指定した font-family に従って IgxIconComponent に適用されるカスタム クラスに関連付けするために使用できます。
例: