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

Provide a convenient BooleanPropertyColumnDefinition

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4
    • None
    • tree/list, workbench
    • Yes

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: