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

Provide a convenient BooleanPropertyColumnDefinition

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: tree/list, workbench
    • Labels:
    • Release notes required:
      Yes
    • Magnolia Release:
      5.4

      Description

      I recently came up with a convenient multi-purpose BooleanPropertyColumnDefinition, along with its associated formatter.

      Similarly as a regular PropertyColumnDefinition it gets bound to a vaadin Item's property (not necessarily a JCR adapter), and allows to set icon and/or label for both true and false values. They can be left blank as well.

      displayMode optional, default is ICON_ONLY
      Defines the display mode to represent the value of the property. The value is one of the following: ICON_ONLY, TEXT_ONLY or ICON_AND_TEXT.
      falseIcon optional
      Defines the icon to display when the value of the property is false.
      trueIcon optional, default is "icon-tick"
      Defines the icon to display when the value of the property is true.
      falseLabel optional
      Defines the text to display when the value of the property is false.
      trueLabel optional
      Defines the text to display when the value of the property is true.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mgeljic Mikaël Geljić
                Reporter:
                mgeljic Mikaël Geljić
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: