HtmlHelperExtensions.Badge Method

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

Overloads

Badge(HtmlHelper, Invite) Returns a badge indicating the invite status.
Badge(HtmlHelper, Member) Returns a badge indicating the space member permission.
Badge(HtmlHelper, Privacy, object) Returns a badge indicating the space privacy level.
Badge(HtmlHelper, User, object) Returns a badge indicating the user status.

Badge(HtmlHelper, Invite)

Returns a badge indicating the invite status.

public static MvcHtmlString Badge(this HtmlHelper html, Invite invite)

Parameters

html
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

invite
Invite

The invite for which to render a badge.

Returns

System.Web.Mvc.MvcHtmlString

HTML markup for a badge.

Badge(HtmlHelper, Member)

Returns a badge indicating the space member permission.

public static MvcHtmlString Badge(this HtmlHelper html, Member member)

Parameters

html
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

member
Member

The member for which to render a badge.

Returns

System.Web.Mvc.MvcHtmlString

HTML markup for a badge.

Badge(HtmlHelper, Privacy, object)

Returns a badge indicating the space privacy level.

public static MvcHtmlString Badge(this HtmlHelper html, Privacy privacy, object htmlAttributes = null)

Parameters

html
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

privacy
Privacy

The privacy level for which to render a badge.

htmlAttributes
object

Returns

System.Web.Mvc.MvcHtmlString

HTML markup for a badge.

Badge(HtmlHelper, User, object)

Returns a badge indicating the user status.

public static MvcHtmlString Badge(this HtmlHelper html, User user, object htmlAttributes = null)

Parameters

html
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

user
User

The user for which to render a badge.

htmlAttributes
object

Returns

System.Web.Mvc.MvcHtmlString

HTML markup for a badge.