Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-4800 Layouts/widgets improvements
  3. NXP-4937

Add a "decorative" or "container" widget type

    XMLWordPrintable

    Details

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

      Added marker "handlingLabels" on widget definition: when set to true, the default layout template will not display the widget label and help label and will let the widget render it (taking both the label and widget place in the rendering)

      Show
      Added marker "handlingLabels" on widget definition: when set to true, the default layout template will not display the widget label and help label and will let the widget render it (taking both the label and widget place in the rendering)

      Description

      Sometimes layouts require more presentation features, that could be addressed us-
      ing "decorative widgets". These widgets would not map any data, but would be
      helpful to either:

      • separate forms semantically
      • add titles to areas semantically close.

      This has already been addressed in Studio (with widgets holding a property
      "header") and other client projects (with custom templating, or with widgets displaying an
      "<hr />" tag.

      The "title" or "header" decorative widgets could also be defined using a simple
      "text" widget with a hardcoded value to bind.

      This is currently achieved writing specific "<h3>" tags in the layout template, and
      using the layout or widget name to display the title.
      When the area needs to be closed (borders defined using CSS), it also needs a
      "<div>" tag all around the widgets to achieve this rendering.

      TODO: define syntax for declaring these widgets and decide if bare HTML
      code should be accepted for them

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: