HtmlHelperExtensions.ScrollMore Method

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

ScrollMore(HtmlHelper, IPagedList, string, string, string)

Renders an anchor for loading more data with infinite scroll.

public static MvcHtmlString ScrollMore(this HtmlHelper helper, IPagedList list, string target = "#infinite-scroll-target", string mode = "append", string url = null)

Parameters

helper
System.Web.Mvc.HtmlHelper
list
IPagedList
target
string

Selector for target element where next page should be appended

mode
string

Specify "append" or "prepend" to indicate whether new data scould be appended or prepended to target.

url
string

Base url to use when constructing the link for loading next page of data.

Returns

System.Web.Mvc.MvcHtmlString