Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-429

Polymer 2: fix nuxeo-data-table column filter-by

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.3
    • Component/s: UI

      Description

      When defining a `filter-by` on a data-table like we do:

                <nuxeo-data-table-column name="[[i18n('documentContentView.datatable.header.title')]]"
                                         field="dc:title" sort-by="dc:title" filter-by="title"  flex="100">
                  <template>
                    <nuxeo-document-thumbnail document="[[item]]"></nuxeo-document-thumbnail>
                    <a class="title ellipsis" href$="[[urlFor('browse', item.path)]]" on-tap="_navigate">[[item.title]]</a>
                  </template>
                </nuxeo-data-table-column>
      

      it is supposed to insert a paper-input thanks to https://github.com/nuxeo/nuxeo-ui-elements/blob/master/nuxeo-data-table/data-table-column.html#L113 (and/or the column name)

      This name or input for filtering are retrieved in https://github.com/nuxeo/nuxeo-ui-elements/blob/master/nuxeo-data-table/data-table-column.html#L6
      but we did not report this resolution in https://github.com/nuxeo/nuxeo-ui-elements/commit/bf18830d799f70eac3f94f49f3678d06fb8ae610#diff-9060aaa43a8ea301aea1b02b389e971bL102
      Indeed,

      Polymer.dom(this.root).querySelector('#header');
      

      does not return anything in polymer2 anymore

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d