Пример #1
0
 private static void SetFullOption(PagedListRenderOptions option)
 {
     option.DisplayLinkToFirstPage       = PagedListDisplayMode.Always;
     option.DisplayLinkToLastPage        = PagedListDisplayMode.Always;
     option.DisplayLinkToPreviousPage    = PagedListDisplayMode.Always;
     option.DisplayLinkToNextPage        = PagedListDisplayMode.Always;
     option.DisplayLinkToIndividualPages = true;
 }
Пример #2
0
 private static void SetMinimalOption(PagedListRenderOptions option)
 {
     option.DisplayLinkToFirstPage       = PagedListDisplayMode.Never;
     option.DisplayLinkToLastPage        = PagedListDisplayMode.Never;
     option.DisplayLinkToPreviousPage    = PagedListDisplayMode.Always;
     option.DisplayLinkToNextPage        = PagedListDisplayMode.Always;
     option.DisplayLinkToIndividualPages = false;
 }
Пример #3
0
 private static void SetPageNumbersPlusFirstAndLastOption(PagedListRenderOptions option)
 {
     option.DisplayLinkToFirstPage       = PagedListDisplayMode.Always;
     option.DisplayLinkToLastPage        = PagedListDisplayMode.Always;
     option.DisplayLinkToPreviousPage    = PagedListDisplayMode.Never;
     option.DisplayLinkToNextPage        = PagedListDisplayMode.Never;
     option.DisplayLinkToIndividualPages = true;
 }