<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to avoid infinite scrolling in Web UI and use pagination in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-avoid-infinite-scrolling-in-web-ui-and-use-pagination/m-p/319700#M6701</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to change how results are displayed in the nuxeo Web UI, and I want to remove the infinite scroll and use navigation instead. I want to change all "nuxeo-data-table" elements.&lt;/P&gt;
&lt;P&gt;I have found that the "nuxeo-data-table" element has a "paginable" attribute: &lt;A href="https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-data-table#property-paginable"&gt;https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-data-table#property-paginable&lt;/A&gt;
However, it seems it is not working, as when I enable it, there are not pagination, and the results appear in duplicate!&lt;/P&gt;
&lt;P&gt;I have also seen another element called "nuxeo-pagination-controls": &lt;A href="https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/demo/demo/nuxeo-pagination-controls/index.html"&gt;https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/demo/demo/nuxeo-pagination-controls/index.html&lt;/A&gt;
But I don't know how it works, and I don't know and I don't know how to "connect" it with the nuxeo-data-table element.&lt;/P&gt;
&lt;P&gt;So, how can I remove infinite scroll and enable pagination like it was in JSF UI?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2020 06:53:28 GMT</pubDate>
    <dc:creator>Rodri_</dc:creator>
    <dc:date>2020-08-26T06:53:28Z</dc:date>
    <item>
      <title>How to avoid infinite scrolling in Web UI and use pagination</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-avoid-infinite-scrolling-in-web-ui-and-use-pagination/m-p/319700#M6701</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to change how results are displayed in the nuxeo Web UI, and I want to remove the infinite scroll and use navigation instead. I want to change all "nuxeo-data-table" elements.&lt;/P&gt;
&lt;P&gt;I have found that the "nuxeo-data-table" element has a "paginable" attribute: &lt;A href="https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-data-table#property-paginable"&gt;https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-data-table#property-paginable&lt;/A&gt;
However, it seems it is not working, as when I enable it, there are not pagination, and the results appear in duplicate!&lt;/P&gt;
&lt;P&gt;I have also seen another element called "nuxeo-pagination-controls": &lt;A href="https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/demo/demo/nuxeo-pagination-controls/index.html"&gt;https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/demo/demo/nuxeo-pagination-controls/index.html&lt;/A&gt;
But I don't know how it works, and I don't know and I don't know how to "connect" it with the nuxeo-data-table element.&lt;/P&gt;
&lt;P&gt;So, how can I remove infinite scroll and enable pagination like it was in JSF UI?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 06:53:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-avoid-infinite-scrolling-in-web-ui-and-use-pagination/m-p/319700#M6701</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-08-26T06:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid infinite scrolling in Web UI and use pagination</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-avoid-infinite-scrolling-in-web-ui-and-use-pagination/m-p/319701#M6702</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I still haven't gotten it to work. I am trying to modify the &lt;CODE&gt;nuxeo-document-content&lt;/CODE&gt; element, and the pagination is working with the page provider, but the results table behaviour is not as expected. This is what I have done:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I have modified the &lt;CODE&gt;nuxeo-data-table&lt;/CODE&gt; element by adding the property &lt;CODE&gt;paginable="true"&lt;/CODE&gt;. I have also added a pagination element after the table:&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-pagination-controls page="{{page}}" number-of-pages="[[numberOfPages]]"&amp;gt;&amp;lt;/nuxeo-pagination-controls&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;I have modify the &lt;CODE&gt;nuxeo-page-provider&lt;/CODE&gt; element adding two properties: "page" and "number-of-pages":&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-page-provider id="nxProvider" provider="[[provider]]" page-size="[[pageSize]]" aggregations="{{aggregations}}" enrichers="[[enrichers]]" params="[[params]]" schemas="[[schemas]]" headers="[[headers]]" page="[[page]]" number-of-pages="{{numberOfPages}}" fetch-aggregates=""&amp;gt;&amp;lt;/nuxeo-page-provider&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;I have defined this new properties in the Polymer script, inside the properties element (and I have added an observer to the "page" property):&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;page: {
	type: Number,
       value: 1,
       notify: true,
	observer: '_pageNumberChanged'
},
numberOfPages: Number,
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This observer executes whenever the "page" value changes; so the ide is to refresh the results table when this value changes. For this, I have tried the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;_pageNumberChanged: function() {
	this.$.nxTable.fetch();
},
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, when I do that, the results are appended to the &lt;CODE&gt;nuxeo-data-table&lt;/CODE&gt; element, instead of replacing them. I also have the problem that the &lt;CODE&gt;nuxeo-pagination-controls&lt;/CODE&gt; are hidden by default, as the element is counted as another way of displaying results (like the table, or the grid elements). How can I made it visible only with the &lt;CODE&gt;nuxeo-data-table&lt;/CODE&gt; results?&lt;/P&gt;
&lt;P&gt;Any help will be appreciated. &lt;A href="https://app.quandora.com/object/135ad47b-aef0-4483-af06-b2ef2500fbad"&gt;Gregory Carlin&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 06:46:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-avoid-infinite-scrolling-in-web-ui-and-use-pagination/m-p/319701#M6702</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-09-03T06:46:05Z</dc:date>
    </item>
  </channel>
</rss>

