Constructors
constructor
new Igx Icon Service( _sanitizer: DomSanitizer , _httpClient: HttpClient , _platformUtil: PlatformUtil , _document: any ) : IgxIconService
Parameters
_sanitizer: DomSanitizer
_httpClient: HttpClient
_platformUtil: PlatformUtil
_document: any
Accessors
default Family
get defaultFamily( ) : string
Returns string
set defaultFamily( className: string ) : void
Parameters
Returns void
Methods
add Svg Icon
add Svg Icon( name: string , url: string , family?: string , stripMeta?: boolean ) : void
Parameters
name: string
url: string
family: string = ...
stripMeta: boolean = false
Returns void
add Svg Icon From Text
add Svg Icon From Text( name: string , iconText: string , family?: string , stripMeta?: boolean ) : void
Parameters
name: string
iconText: string
family: string = ''
stripMeta: boolean = false
Returns void
family Class Name
family Class Name( alias: string ) : string
Parameters
Returns string
get Svg Icon
get Svg Icon( name: string , family?: string ) : SafeHtml
Parameters
name: string
family: string = ''
Returns SafeHtml
is Svg Icon Cached
is Svg Icon Cached( name: string , family?: string ) : boolean
Parameters
name: string
family: string = ''
Returns boolean
register Family Alias
register Family Alias( alias: string , className?: string ) : IgxIconService
Parameters
alias: string
className: string = alias
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Ignite UI for Angular Icon Service -
The Ignite UI Icon Service makes it easy for developers to include custom SVG images and use them with IgxIconComponent. In addition it could be used to associate a custom class to be applied on IgxIconComponent according to given font-family.
Example: