Skip to content

Commit

Permalink
update page size to 20. Default sizes now 10, 20, 50, 100
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Oct 4, 2022
1 parent bd8667c commit 5fdf441
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ private void initLayout() {
setRenderBodyOnly(false);
add(AttributeAppender.append("class", "d-flex flex-nowrap align-items-center paging-size"));

DropDownChoice size = new DropDownChoice(ID_SIZE, createModel(), Model.ofList(Arrays.asList(10, 25, 50, 100)));
DropDownChoice size = new DropDownChoice(ID_SIZE, createModel(),
Model.ofList(Arrays.asList(UserProfileStorage.DEFAULT_PAGING_SIZES)));
size.add(new AjaxFormComponentUpdatingBehavior("change") {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
public class UserProfileStorage implements Serializable, DebugDumpable {

private static final long serialVersionUID = 1L;
public static final int DEFAULT_PAGING_SIZE = 25;

public static final int DEFAULT_PAGING_SIZE = 20;

public static final Integer[] DEFAULT_PAGING_SIZES = new Integer[] { 10, DEFAULT_PAGING_SIZE, 50, 100 };
public static final int DEFAULT_DASHBOARD_PAGING_SIZE = 5;

/*
Expand Down

0 comments on commit 5fdf441

Please sign in to comment.