alfresco-ng2-components icon indicating copy to clipboard operation
alfresco-ng2-components copied to clipboard

maxItems in document-list not working

Open loictrichaud opened this issue 6 years ago • 4 comments

Type of issue: (check with "[x]")

  • [ ] New feature request
  • [x] Bug
  • [ ] Support request
  • [ ] Documentation

Current behaviour: The "maxItems" property of the "DocumentListComponent" component does not work because it is not taken into account. I want to display the user's favorites but only the first 5.

But in class constructor, you erase "maxItems" with UserPreferenceValues.PaginationSize.

Expected behavior: We should only see 5 items.

Steps to reproduce the issue: Put 10 files to your favorites. And test that : <adf-document-list [currentFolderId]="'-favorites-'" [maxItems]="5"> </adf-document-list>. It's not working and you will see your 10 files. You sould see only 5 files.

Component name and version: adf-document-list => version 3.4

Browser and version:

Node version (for build issues):
v10.16.0

New feature request:

loictrichaud avatar Sep 04 '19 06:09 loictrichaud

Thanks for raising this issue. We will address it in the future releases. Meanwhile, as a workaround, you can use the "app.config.json" file to provide the custom maxItems value.

DenysVuika avatar Sep 04 '19 16:09 DenysVuika

Hey there, I would like to work om this issue.

jatinAroraGit avatar Sep 27 '19 20:09 jatinAroraGit

Hey, @jatinAroraGit, thanks for the help. Feel free to pick it and create a PR with the update

DenysVuika avatar Sep 29 '19 07:09 DenysVuika