Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9234

Allow referencing of a widget subwidgets

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6-RC1, 5.6
    • Component/s: Layouts & Widgets
    • Impact type:
      API change, API added
    • Upgrade notes:
      Hide

      The json export has changed to include category in widget references: for instance now we have {"widgets": [

      {"name": "nature"}

      ]}, instead of

      {"widgets": ["nature"]}

      ,

      Now possible to reference subwidgets (defined locally or globally) using the same syntax than when referencing widgets in rows, for instance:
      <widget name="testWidgetWithSubWidgetRefs" type="test">
      <subWidgetRefs>
      <widget>globalSubWidget</widget>
      <widget>testLocalSubwidget</widget>
      </subWidgetRefs>
      </widget>

      Show
      The json export has changed to include category in widget references: for instance now we have {"widgets": [ {"name": "nature"} ]}, instead of {"widgets": ["nature"]} , Now possible to reference subwidgets (defined locally or globally) using the same syntax than when referencing widgets in rows, for instance: <widget name="testWidgetWithSubWidgetRefs" type="test"> <subWidgetRefs> <widget>globalSubWidget</widget> <widget>testLocalSubwidget</widget> </subWidgetRefs> </widget>

      Description

      Subwidgets of a given widget currently need to be defined within the widget, so they cannot reference a widget defined inside the layout, or defined globally.

      => add a new tag "subwidgetsRefs" that would reference subwidgets and would be used for lookup of subwidgets when generating the parent widget instance.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atchertchian Anahide Tchertchian
                Reporter:
                atchertchian Anahide Tchertchian
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: