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

Provide a convenient BooleanPropertyColumnDefinition

    XMLWordPrintable

Details

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

    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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: