HtmlHelperExtensions.StarToggle Method

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

StarToggle(HtmlHelper, IStarrable, Boolean, Object)

Returns an button element for starring/unstarring the specified entity.

public static MvcHtmlString StarToggle(this HtmlHelper html, IStarrable starrable, bool compact = true, object htmlAttributes = null)

Parameters

html
System.Web.Mvc.HtmlHelper
starrable
IStarrable
compact
System.Boolean
htmlAttributes
System.Object

Returns

System.Web.Mvc.MvcHtmlString

An anchor element (a element).