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

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

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Neutral Neutral
    • None
    • None
    • workbench
    • Yes

      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.

        Acceptance criteria

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

              Unassigned Unassigned
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: