Class IconHelper
Adds support for fa tags that are being transformed into Font Awesome icons. The icon is defined by
either the icon attribute for a fixed-width icon, or the icon-flexible attribute for a
flexible width icon. The size of the icon can be controlled by using the optional size attribute.
Icon names and sizes are not prefixed with the fa- CSS class name prefix. Additional attributes or
tag contents are retained.
Inheritance
Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
IconHelper
Assembly: XploRe.AspNetCore.Mvc.TagHelpers.FontAwesome.dll
Syntax
public class IconHelper : SizeHelper
Constructors
Properties
| Name |
Description |
|
Icon
|
Name of Font Awesome icon. Will render the icon with a fixed width.
|
|
Symbol
|
Name of Font Awesome icon. Will render the icon with flexible width.
|
Methods