Skip to content

Commit

Permalink
remove DisplayItemSliceAndTotal
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed May 3, 2024
1 parent 4e09d2f commit dbdc3cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions src/Moonglade.Web/PagedList/HtmlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ public string PagedListPager(IPagedList pagedList, Func<int, string> generatePag
listItemLinks.Add(PageCountAndLocationText(list, options));
}

//text
if (options.DisplayItemSliceAndTotal)
{
listItemLinks.Add(ItemSliceAndTotalText(list, options));
}

//page
listItemLinks.AddRange(Enumerable.Range(firstPageToDisplay, pageNumbersToDisplay).Select(i => Page(i, list, generatePageUrl, options)));

Expand Down
8 changes: 0 additions & 8 deletions src/Moonglade.Web/PagedList/PagedListRenderOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ public PagedListRenderOptions()
///</example>
public bool DisplayPageCountAndCurrentLocation { get; set; }

///<summary>
/// When true, shows the one-based index of the first and last items on the page, and the total number of items in the list.
///</summary>
///<example>
/// "Showing items 75 through 100 of 183."
///</example>
public bool DisplayItemSliceAndTotal { get; set; }

///<summary>
/// The maximum number of page numbers to display. Null displays all page numbers.
///</summary>
Expand Down

0 comments on commit dbdc3cc

Please sign in to comment.