Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3584

Ability to dynamically style cells and rows in tree and list views

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: workbench
    • Labels:
    • Patch included:
      Yes

      Description

      If one wants to style a cell or a complete row of a tree or list, the possibilities are limited to using a ColumnFormatter and wrap the data in a <span>. This works to a certain extent, but is not elegant. Styling an entire row (e.g grey it out based on the status of the node) is only doable using nasty javascript tricks.

      With the attached patch, we would allow developers to configure CellStyleGenerator at table/list level (to be used for styling rows) and at column level (to style cells).
      AggregateCellStyleGenerator is provided so that we can simply pile up the configured generators with our default ones. Presumably, parts of this patch would be moved to info.magnolia.ui.workbench.list.ListPresenter#start, similarly to how we setup the column formatters.

        Attachments

        1. ColStyle.java
          3 kB
        2. MGNLUI-3584.v2.patch
          14 kB
        3. MGNLUI-3874.v1.patch
          5 kB
        4. RowStyle.java
          2 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gjoseph Magnolia International
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: