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

nuxeo-data-table shows empty rows when in nuxeo-card

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.3.2
    • Fix Version/s: 2.2.25, 2.4.0
    • Component/s: UI
    • Release Notes Summary:
      The nuxeo-data-table element shows correctly its content when using in a nuxeo-card element.
    • Tags:
    • Backlog priority:
      600
    • Sprint:
      nxGang Sprint 10.10.4
    • Story Points:
      3

      Description

      Steps to reproduce:

      • Add the following to the nuxeo-folder-metadata-layout.html:
        m3 fox@fox-laptop:~/workspace/nuxeo/addons/nuxeo-web-ui$ git diff
        diff --git i/elements/document/folder/nuxeo-folder-metadata-layout.html w/elements/document/folder/nuxeo-folder-metadata-layout.html
        index cce175d7..ddcc54b5 100644
        --- i/elements/document/folder/nuxeo-folder-metadata-layout.html
        +++ w/elements/document/folder/nuxeo-folder-metadata-layout.html
        @@ -48,40 +48,28 @@ limitations under the License.
               }
             </style>
         
        -    <div role="widget">
        -      <label>[[i18n('label.dublincore.title')]]</label>
        -      <div name="title">[[document.properties.dc:title]]</div>
        -    </div>
        -
        -    <div role="widget" hidden$="[[!document.properties.dc:description]]">
        -      <label>[[i18n('label.dublincore.description')]]</label>
        -      <div name="description" class="multiline">[[document.properties.dc:description]]</div>
        -    </div>
        -
        -    <div role="widget" hidden$="[[!document.properties.dc:nature]]">
        -      <label>[[i18n('label.dublincore.nature')]]</label>
        -      <div name="nature">[[formatDirectory(document.properties.dc:nature)]]</div>
        -    </div>
        -
        -    <nuxeo-directory-suggestion role="widget"
        -                                label="[[i18n('label.dublincore.subjects')]]"
        -                                directory-name="l10nsubjects"
        -                                name="subjects"
        -                                value="{{document.properties.dc:subjects}}"
        -                                hidden$="[[!document.properties.dc:subjects.length]]"
        -                                multiple="true"
        -                                dbl10n="true"
        -                                readonly>
        -    </nuxeo-directory-suggestion>
         
        -    <div role="widget" hidden$="[[!document.properties.dc:coverage]]">
        -      <label>[[i18n('label.dublincore.coverage')]]</label>
        -      <div name="coverage">[[formatDirectory(document.properties.dc:coverage)]]</div>
        -    </div>
        -
        -    <div role="widget" hidden$="[[!document.properties.dc:expired]]">
        -      <label>[[i18n('label.dublincore.expire')]]</label>
        -      <nuxeo-date name="expired" datetime="[[document.properties.dc:expired]]"></nuxeo-date>
        +    <div role="widget">
        +      <nuxeo-data-table role="widget" items='[{"name": "Bill", "city": "Paris", "phone": "12344566788"}]'>
        +        <nuxeo-data-table-column name="Name">
        +          <template>
        +            [[item.name]]
        +          </template>
        +        </nuxeo-data-table-column>
        +
        +        <nuxeo-data-table-column name="City">
        +          <template>
        +            [[item.city]]
        +          </template>
        +        </nuxeo-data-table-column>
        +
        +        <nuxeo-data-table-column name="Phone Number">
        +          <template>
        +            [[item.phone]]
        +          </template>
        +        </nuxeo-data-table-column>
        +
        +      </nuxeo-data-table>
             </div>
           </template>
        
      • create a folder
      • open the collapsible panel
      • the datatable is empty KO (see screenshot1)
      • resize the window
      • the row appears OK (see screenshot2)

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 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 - 3 hours, 5 minutes
                3h 5m