alfresco-ng2-components
alfresco-ng2-components copied to clipboard
maxItems in document-list not working
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:
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.
Hey there, I would like to work om this issue.
Hey, @jatinAroraGit, thanks for the help. Feel free to pick it and create a PR with the update