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

Make nuxeo-slot compatible with native HTML slots

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0-SNAPSHOT
    • Fix Version/s: 2.4.14, 3.0.0
    • Component/s: Slots
    • Release Notes Summary:
      nuxeo-slot is compatible with native HTML slots.
    • Backlog priority:
      500
    • Impact type:
      API change
    • Upgrade notes:
      Hide
      • nuxeo-slot name is now defined by the name property, instead of slot. Backwards compatibility is kept. If the name property is not defined, slot will be used as the nuxeo slot's name instead.
      • nuxeo-slot can now be assigned to native HTML slots.
      • Native slots cannot be used as slotted content of nuxeo-actions-menu (see ELEMENTS-1033).
      Show
      nuxeo-slot name is now defined by the name property, instead of slot . Backwards compatibility is kept. If the name property is not defined, slot will be used as the nuxeo slot's name instead. nuxeo-slot can now be assigned to native HTML slots. Native slots cannot be used as slotted content of nuxeo-actions-menu (see ELEMENTS-1033 ).
    • Team:
      GANG
    • Sprint:
      nxGang Sprint 11.1.15, nxGang Sprint 11.1.16
    • Story Points:
      3

      Description

      Currently, the slot attribute is used to define nuxeo-slot's name. However, the slot attribute is standardly used to define the name of the native HTML slot where the slottable element will be inserted. Therefore, we need to replace the slot attribute of nuxeo-slot with a different attribute to denote the name (name is a suitable candidate). This would allow nuxeo slots to be assigned to native slots:

      <nuxeo-slot name="COLLECTION_ACTIONS" slot="selectionActions" model="[[actionContext]]"></nuxeo-slot>
      

      This is required preventing issues such as those reported under ELEMENTS-1011.

      Note that if no name attribute is present on a nuxeo-slot's instance, the slot attribute will be used as the name instead. This is required to keep compatibility with the previous way of specifying the slot's name.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 4 hours, 35 minutes
                  1w 4h 35m