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

Fix usage of multi-selection=false on nuxeo-data-table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.x, 3.0.x
    • Component/s: Widgets

      Description

      The default value of "multiSelection" in the "nuxeo-data-table" element (iron-data-table.js) is set to true.

      https://github.com/nuxeo/nuxeo-elements/blob/maintenance-3.1.x/ui/nuxeo-data-table/iron-data-table.js#L495

      Because of that, it's not possible to disable the multi-selection on a data-table.

      The code below

      <nuxeo-data-table
         multi-selection="false"

      will have no effect.

       

      Expected behavior: there is a solution to disable the multi-selection

       

      Note : changing the property multiSelection to false on the element "nuxeo-data-table" allows to switch to single selection. However doing that brings 2 issues :

      • the default behavior cannot be changed for our customers, so I guess this is not an option to change property multiSelection to false
      • I tested to switch to multi-selection by adding the attribut multi-selection to "nuxeo-data-table" but it did not work. Code I use
       <nuxeo-data-table
         multi-selection
         ...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: