C# 클래스 N2Bootstrap.Library.PagingLinksBuilder

Builds paging links for a given pageNumber and totalPages in a fully configurable fashion.
상속: IHtmlString
파일 보기 프로젝트 열기: pauldotknopf/N2Bootstrap

공개 메소드들

메소드 설명
ActiveCssClass ( string activeCssClass ) : PagingLinksBuilder

Set the \"active\" css class

AlwaysShowNavigation ( bool alwaysShowNavigation ) : PagingLinksBuilder

The first/previous/next/last links will be hidden if they are not valid. This bool will allow you to always render them, but render them disabled (javascript:void() with disabledCssClass).

DisabledCssClass ( string disabledCssClass ) : PagingLinksBuilder

Set the \"disabled\" css class

FirstCssClass ( string firstCssClass ) : PagingLinksBuilder

Set the \"first\" css class

FirstText ( string firstText ) : PagingLinksBuilder

Set the 'First' link text'.

ItemTemplate ( HelperResult>.Func itemTempate ) : PagingLinksBuilder

Set the item template to use. ------------- Default -------------

  • @item.LinkRender
  • -------------

    LastCssClass ( string lastCssClass ) : PagingLinksBuilder

    Set the \"last\" css class

    LastText ( string lastText ) : PagingLinksBuilder

    Set the 'Last' link text'.

    LayoutTemplate ( HelperResult>.Func layoutTemplate ) : PagingLinksBuilder

    Set the layout template to use. ------------- Default -------------

    -------------

    LinkTemplate ( HelperResult>.Func linkTemplate ) : PagingLinksBuilder

    Set the link template to use. ------------- Default ------------- @item.LinkText -------------

    MaxNumberOfTrailingLeadingPages ( int maxNumberOfTrailingLeadingPages ) : PagingLinksBuilder

    Sets the maximum number of trailing/leading pages. For example: MaxNumberOfTrailingLeadingPages(2); [1] - 2 - 3 - 4 - 5 3 - 4 - [5] - 6 - 7 5 - 6 - 7 - 8 - [9] MaxNumberOfTrailingLeadingPages(3); [1] - 2 - 3 - 4 - 5 - 6 - 7 2 - 3 - 4 - [5] - 6 - 7 - 8 3 - 4 - 5 - 6 - 7 - 8 - [9]

    NextCssClass ( string nextCssClass ) : PagingLinksBuilder

    Set the \"next\" css class

    NextPrevious ( string previousText ) : PagingLinksBuilder

    Set the 'Previous' link text'.

    NextText ( string nextText ) : PagingLinksBuilder

    Set the 'Next' link text'.

    PageCssClass ( string pageCssClass ) : PagingLinksBuilder

    Set the \"page\" css class

    PageUrlBuilder ( string>.Func pageUrlBuilder ) : PagingLinksBuilder

    Set the page-url builder that will be invoked when rendering pieces need a url to a page.

    PagingLinksBuilder ( int currentPage, int totalPages, string>.Func pageUrlBuilder ) : System

    Initializes a new PagingLinksBuilder

    PreviousCssClass ( string previousCssClass ) : PagingLinksBuilder

    Set the \"previous\" css class

    ToHtmlString ( ) : string

    비공개 메소드들

    메소드 설명
    BuildItem ( string text, int pageNumber, LinkType linkType ) : System.Web.WebPages.HelperResult

    Builds an item (and the link nested within it)

    BuildPageRange ( Action action ) : void

    Builds the 'nearby' pages (21, 22, 23, 24, 25), etc.

    InitializeDefaults ( ) : void

    Initialize all the default values.

    메소드 상세

    ActiveCssClass() 공개 메소드

    Set the \"active\" css class
    public ActiveCssClass ( string activeCssClass ) : PagingLinksBuilder
    activeCssClass string
    리턴 PagingLinksBuilder

    AlwaysShowNavigation() 공개 메소드

    The first/previous/next/last links will be hidden if they are not valid. This bool will allow you to always render them, but render them disabled (javascript:void() with disabledCssClass).
    public AlwaysShowNavigation ( bool alwaysShowNavigation ) : PagingLinksBuilder
    alwaysShowNavigation bool
    리턴 PagingLinksBuilder

    DisabledCssClass() 공개 메소드

    Set the \"disabled\" css class
    public DisabledCssClass ( string disabledCssClass ) : PagingLinksBuilder
    disabledCssClass string
    리턴 PagingLinksBuilder

    FirstCssClass() 공개 메소드

    Set the \"first\" css class
    public FirstCssClass ( string firstCssClass ) : PagingLinksBuilder
    firstCssClass string
    리턴 PagingLinksBuilder

    FirstText() 공개 메소드

    Set the 'First' link text'.
    public FirstText ( string firstText ) : PagingLinksBuilder
    firstText string
    리턴 PagingLinksBuilder

    ItemTemplate() 공개 메소드

    Set the item template to use. ------------- Default -------------
  • @item.LinkRender
  • -------------
    public ItemTemplate ( HelperResult>.Func itemTempate ) : PagingLinksBuilder
    itemTempate HelperResult>.Func
    리턴 PagingLinksBuilder

    LastCssClass() 공개 메소드

    Set the \"last\" css class
    public LastCssClass ( string lastCssClass ) : PagingLinksBuilder
    lastCssClass string
    리턴 PagingLinksBuilder

    LastText() 공개 메소드

    Set the 'Last' link text'.
    public LastText ( string lastText ) : PagingLinksBuilder
    lastText string
    리턴 PagingLinksBuilder

    LayoutTemplate() 공개 메소드

    Set the layout template to use. ------------- Default ------------- -------------
    public LayoutTemplate ( HelperResult>.Func layoutTemplate ) : PagingLinksBuilder
    layoutTemplate HelperResult>.Func
    리턴 PagingLinksBuilder

    LinkTemplate() 공개 메소드

    Set the link template to use. ------------- Default ------------- @item.LinkText -------------
    public LinkTemplate ( HelperResult>.Func linkTemplate ) : PagingLinksBuilder
    linkTemplate HelperResult>.Func
    리턴 PagingLinksBuilder

    MaxNumberOfTrailingLeadingPages() 공개 메소드

    Sets the maximum number of trailing/leading pages. For example: MaxNumberOfTrailingLeadingPages(2); [1] - 2 - 3 - 4 - 5 3 - 4 - [5] - 6 - 7 5 - 6 - 7 - 8 - [9] MaxNumberOfTrailingLeadingPages(3); [1] - 2 - 3 - 4 - 5 - 6 - 7 2 - 3 - 4 - [5] - 6 - 7 - 8 3 - 4 - 5 - 6 - 7 - 8 - [9]
    public MaxNumberOfTrailingLeadingPages ( int maxNumberOfTrailingLeadingPages ) : PagingLinksBuilder
    maxNumberOfTrailingLeadingPages int
    리턴 PagingLinksBuilder

    NextCssClass() 공개 메소드

    Set the \"next\" css class
    public NextCssClass ( string nextCssClass ) : PagingLinksBuilder
    nextCssClass string
    리턴 PagingLinksBuilder

    NextPrevious() 공개 메소드

    Set the 'Previous' link text'.
    public NextPrevious ( string previousText ) : PagingLinksBuilder
    previousText string
    리턴 PagingLinksBuilder

    NextText() 공개 메소드

    Set the 'Next' link text'.
    public NextText ( string nextText ) : PagingLinksBuilder
    nextText string
    리턴 PagingLinksBuilder

    PageCssClass() 공개 메소드

    Set the \"page\" css class
    public PageCssClass ( string pageCssClass ) : PagingLinksBuilder
    pageCssClass string
    리턴 PagingLinksBuilder

    PageUrlBuilder() 공개 메소드

    Set the page-url builder that will be invoked when rendering pieces need a url to a page.
    public PageUrlBuilder ( string>.Func pageUrlBuilder ) : PagingLinksBuilder
    pageUrlBuilder string>.Func
    리턴 PagingLinksBuilder

    PagingLinksBuilder() 공개 메소드

    Initializes a new PagingLinksBuilder
    public PagingLinksBuilder ( int currentPage, int totalPages, string>.Func pageUrlBuilder ) : System
    currentPage int
    totalPages int
    pageUrlBuilder string>.Func The delegate that will be used to be page urls, for example: /category?page=1
    리턴 System

    PreviousCssClass() 공개 메소드

    Set the \"previous\" css class
    public PreviousCssClass ( string previousCssClass ) : PagingLinksBuilder
    previousCssClass string
    리턴 PagingLinksBuilder

    ToHtmlString() 공개 메소드

    public ToHtmlString ( ) : string
    리턴 string