Svg.Icon Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

Overloads

Icon(Icon, object) Renders markup for the specified icon.
Icon(IEntity, string, int?, object) Renders icon markup for the specified entity.
Icon(string, string, int?, object) Renders markup for the specified icon.

Icon(Icon, object)

Renders markup for the specified icon.

public static HtmlString Icon(Icon icon, object htmlAttributes = null)

Parameters

icon
Icon
htmlAttributes
object

Returns

System.Web.HtmlString

Icon(IEntity, string, int?, object)

Renders icon markup for the specified entity.

public static HtmlString Icon(IEntity entity, string color = null, int? size = default(int? ), object htmlAttributes = null)

Parameters

entity
IEntity
color
string
size
int?
htmlAttributes
object

Returns

System.Web.HtmlString

Icon(string, string, int?, object)

Renders markup for the specified icon.

public static HtmlString Icon(string name, string color = null, int? size = default(int? ), object htmlAttributes = null)

Parameters

name
string

name of icon, e.g. "home", see icons task in gulpfile.js for a complete list.

color
string

name of color to use for the icon, e.g. "native", "blue", "red-500", "green-700" etc.

size
int?

icon size, i.e. 18, 24, 36 or 48.

htmlAttributes
object

Additional attributes to apply.

Returns

System.Web.HtmlString