Skip to content

Commit

Permalink
remove LiElementClasses
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed May 3, 2024
1 parent d931b86 commit 4eb0c51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions src/Moonglade.Web/PagedList/HtmlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,7 @@ public string PagedListPager(IPagedList pagedList, Func<int, string> generatePag
//append classes to all list item links
foreach (var li in listItemLinks)
{
foreach (var c in options.LiElementClasses ?? Enumerable.Empty<string>())
{
li.AddCssClass(c);
}
li.AddCssClass("page-item");
}
}

Expand Down
6 changes: 0 additions & 6 deletions src/Moonglade.Web/PagedList/PagedListRenderOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public PagedListRenderOptions()
ItemSliceAndTotalFormat = "Showing items {0} through {1} of {2}.";
FunctionToDisplayEachPageNumber = null;
UlElementClasses = ["pagination"];
LiElementClasses = ["page-item"];
PageClasses = ["page-link"];
PreviousElementClass = "PagedList-skip-to-previous";
NextElementClass = "paged-list-skip-to-next";
Expand All @@ -29,11 +28,6 @@ public PagedListRenderOptions()
///</summary>
public IEnumerable<string> UlElementClasses { get; set; }

///<summary>
/// CSS Classes to append to every &lt;li&gt; element in the paging control.
///</summary>
public IEnumerable<string> LiElementClasses { get; set; }

///<summary>
/// CSS Classes to append to every &lt;a&gt; or &lt;span&gt; element that represent each page in the paging control.
///</summary>
Expand Down

0 comments on commit 4eb0c51

Please sign in to comment.