HtmlHelperExtensions Class

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

Helper methods for generating Html markup.

public static class HtmlHelperExtensions
Inheritance:
System.Object → HtmlHelperExtensions

Methods

ActionLink(HtmlHelper, Expression>, String, String, String, String, Nullable, Object, LinkActive)
AlertMessages(HtmlHelper, Boolean) Renders alert messages that are stored in TempData.
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.
Breadcrumbs(HtmlHelper, Content, Object) Returns breadcrumb navigation for the specified content item.
ContentBadge(HtmlHelper, Content) Returns a badge with content status, i.e. editing, locked etc.
ContentPickerOptions(HtmlHelper, FilesApp) Returns a list of <option> elements representing folders in the specified FilesApp.
ContentPickerOptions(HtmlHelper, FilesApp, Content) Returns a list of <option> elements representing the content hierarchy in the specified FilesApp (used when moving content to another location).
ContentPickerOptions(HtmlHelper, FilesApp, Guid) Returns a list of <option> elements representing the content hierarchy in the specified FilesApp (used when inserting/attaching content).
ConversationsBadge(HtmlHelper) Returns a badge indicating the number of unread conversations.
DisplayGroups(HtmlHelper, Object, String, IEnumerable)
EditorsForModel(HtmlHelper, Object, String, Boolean, Boolean, Boolean, IEnumerable, IEnumerable) Returns an HTML input field for each property in the model.
FilterForm(HtmlHelper, Expression>, Query, Object, Object)
FollowToggle(HtmlHelper, User) Returns a button element (<button>) for following/unfollowing the specified user.
GetRouteValuesFromExpression(Expression>)
GetThemedCss(String, String)
GetThemedScssFile(String, String) Helper method for returning a .scss stylesheet file with our theme colors injected.
HasEditors(HtmlHelper, Object, String, IEnumerable) Check if the specified model has any editable fields.
HasHtmlEditor(HtmlHelper, Object) Helper method for checking if the specified model object has a property marked with System.ComponentModel.DataAnnotations.DataType.Html.
IconImg(HtmlHelper, Nullable, Boolean, Boolean, Object) Returns an img element with the theme icon.
InitHtmlEditor(HtmlHelper) Returns a javascript for initializing the html editor.
JoinToggle(HtmlHelper, Space) Returns an anchor element (a element) for joining/leaving the specified space.
NotificationsBadge(HtmlHelper) Returns a badge indicating the number of unread notifications.
Pagination(HtmlHelper, IPagedList) Renders pagination controls.
PreviewAttributes(HtmlHelper, Attachment) Gets html attributes needed for triggering image and document preview.
PreviewAttributes(HtmlHelper, IFile) Gets html attributes needed for triggering image and document preview.
RenderPartial(HtmlHelper, Content) Creates a System.Web.Mvc.ViewResult object that renders a view, by using the specified model.
RenderPartial(HtmlHelper, Content, Layout) Renders a partial view for the the specified content item and layout.
RenderPartial(HtmlHelper, ContentSearchResult) Renders a partial view for the specified search result.
RenderPartial(HtmlHelper, String, Content) Creates a System.Web.Mvc.PartialViewResult object that renders a view, by using the specified model.
Scripts(HtmlHelper, Object) Renders script that are stored in TempData.
ScrollMore(HtmlHelper, IPagedList, String, String, String) Renders an anchor for loading more data with infinite scroll.
ScrollNext(HtmlHelper, IPagedList, String) Renders an anchor element for loading next page of data with infinite scroll.
SearchResultText(HtmlHelper, SearchResult) Returns a descriptive text for the specified search result.
SelectOptions(HtmlHelper, IEnumerable, Nullable) Returns a list of <option> elements representing the specified entities.
StarToggle(HtmlHelper, IStarrable, Boolean, Object) Returns an button element for starring/unstarring the specified entity.
SubscribersText(HtmlHelper, IFollowable) Returns a string containing info about number of subscribers.
SubscribeToggle(HtmlHelper, IFollowable, Object) Returns a anchor element (a element) for turning on/off notifications for the specified entity.
SvgOverlaySpinner(HtmlHelper, Int32, Boolean, String, String) Renders markup for an animated spinner on an overlay background.
SvgSpinner(HtmlHelper, Int32, Boolean) Renders markup for the animated spinner.
ThemeHead(HtmlHelper) Helper for rendering link to favicon, app manifest etc.
ThemeStyle(HtmlHelper, String) Helper for rendering a themed stylesheet.
ThemeStyle(HtmlHelper, String, String, Object, NullableOutput>) Helper for rendering a themed stylesheet.
Time(HtmlHelper, DateTime, String, Boolean) Returns a <time> element with the specified date.
Time(HtmlHelper, NullableTime>, String) Returns a <time> element with the specified date.
TimeWhen(HtmlHelper, DateTime, Boolean) Returns a <time> element when the specified date occured.
TimeWhen(HtmlHelper, NullableTime>, Boolean) Returns a <time> element when the specified date occured.
Title(HtmlHelper, String) Helper for getting the title for the html head.
ToJson(HtmlHelper, Object) Serializes an object to Json
WhatByWhen(HtmlHelper, Content) Returns a string containing when a content item was created/modified and by whom.