Svg.Icon Method

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

Overloads

Icon(Icon, Object) Renders markup for the specified icon.
Icon(IEntity, String, Nullable, Object) Renders icon markup for the specified entity.
Icon(String, String, Nullable, 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
System.Object

Returns

System.Web.HtmlString

Icon(IEntity, String, Nullable, 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
System.String
size
System.Nullable{System.Int32}
htmlAttributes
System.Object

Returns

System.Web.HtmlString

Icon(String, String, Nullable, 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
System.String
color
System.String
size
System.Nullable{System.Int32}
htmlAttributes
System.Object

Returns

System.Web.HtmlString