- install Nuxeo
- use the following code in a element and display it in a document page:
<nuxeo-page-provider id="bookPP" provider="allDocs" enrichers="thumbnail" page-size="40" schemas="dublincore,book"> </nuxeo-page-provider> <nuxeo-data-table id="table" nx-provider="bookPP" empty-label="[[i18n('book.noBook')]]" empty-label-when-filtered="[[i18n('book.noBook')]]" on-row-clicked="_navigate" paginable> <nuxeo-data-table-column name="[[i18n('book.title')]]" flex="100" filter-by="dublincore_title" sort-by="dc:title" > <template> <nuxeo-document-thumbnail document="[[item]]"></nuxeo-document-thumbnail> <a class="title ellipsis">[[item.title]]</a> </template> </nuxeo-data-table-column> <nuxeo-data-table-column name="[[i18n('book.publicationDate')]]" flex="100" filter-by="book:publicationDate" sort-by="book:publicationDate"> <template> <nuxeo-date datetime="[[item.properties.book:publicationDate]]"></nuxeo-date> </template> </nuxeo-data-table-column> </nuxeo-data-table>
In this case the allDocs is the default provider when creating one in Studio.
- when searching without the paginable flag the search is immediate, when adding the paginate flag then it does not display anything.
Expected result: with or without the paginable flag the result should be returned
Workaround: clicking on the arrow next to the filter field refreshes the result. But this workaround may not be practical when the data table is used inside a nuxeo-results element.